<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/19836" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2015-01-28T18:13:02-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/19836</id>

		<entry>
		<author><name><![CDATA[Sedition]]></name></author>
		<updated>2015-01-28T18:13:02-04:00</updated>

		<published>2015-01-28T18:13:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103451#p103451</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103451#p103451"/>
		<title type="html"><![CDATA[help please flags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103451#p103451"><![CDATA[
very quite thank you..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11854">Sedition</a> — Wed Jan 28, 2015 6:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2015-01-26T08:50:03-04:00</updated>

		<published>2015-01-26T08:50:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103446#p103446</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103446#p103446"/>
		<title type="html"><![CDATA[help please flags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103446#p103446"><![CDATA[
Apart from changing from <em class="text-italics">putquick</em> to <em class="text-italics">puthelp</em> according to my recommendation, I still see the <em class="text-italics">onchan</em> and that you didn't use the <em class="text-italics">if .. else ..</em> syntax. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Anyway, just to be on the safe side I've added user's <a href="http://forum.egghelp.org/viewtopic.php?t=9009#45537" class="postlink">throttle</a> proc to limit the non registered users from flooding the bot to one command every 5 seconds, or how many you wish.<div class="codebox"><p>Code: </p><pre><code>set flagaccess "mnofb"bind pub - !control controlbind pub - .control controlproc control {nick uhost hand chan text} {global flagaccessif {![matchattr $hand $flagaccess $chan]} {if {![throttled $chan 5]} {puthelp "PRIVMSG $chan :\2sorry $nick :/\2 I feel it you have no privileges. =)"}} else {puthelp "NOTICE $chan :$nick all the commands are in wwww.tets1."}}# user's throttledproc throttled {id seconds} {global throttleif {[info exists throttle($id)]&amp;&amp;$throttle($id)&gt;[clock sec]} {set id 1} {set throttle($id) [expr {[clock sec]+$seconds}]set id 0}}bind time - ?0* throttledCleanupproc throttledCleanup args {global throttleset now [clock sec]foreach {id time} [array get throttle] {if {$time&lt;=$now} {unset throttle($id)}}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Jan 26, 2015 8:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sedition]]></name></author>
		<updated>2015-01-25T14:01:10-04:00</updated>

		<published>2015-01-25T14:01:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103445#p103445</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103445#p103445"/>
		<title type="html"><![CDATA[help please flags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103445#p103445"><![CDATA[
ok thanks caesar <br>a question and <strong class="text-strong">putserv </strong>it is well or not to be used and not to fill of flood<div class="codebox"><p>Code: </p><pre><code>set flagaccess "mnofb"bind pub - !control controlbind pub - .control controlproc control {nick host hand chan text} {global flagaccess if {(![matchattr $hand $flagaccess $chan]) &amp;&amp; ([onchan $nick $chan])} {   puthelp "PRIVMSG $chan :\2sorry $nick :/\2 I feel it you have no privileges. =)" ; return 0 } puthelp "NOTICE $chan :$nick all the commands are in wwww.tets1."}</code></pre></div>is correct caesar ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11854">Sedition</a> — Sun Jan 25, 2015 2:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2014-12-19T04:31:44-04:00</updated>

		<published>2014-12-19T04:31:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103378#p103378</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103378#p103378"/>
		<title type="html"><![CDATA[help please flags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103378#p103378"><![CDATA[
You should switch from <em class="text-italics">putquick</em> to <em class="text-italics">puthelp</em> cos if multiple members issue the same command the bot will flood itself off.<br><br>What's the point on having the <em class="text-italics">onchan</em> there? Also, instead of using return 0 you could use the <em class="text-italics">if ... else ...</em> like:<div class="codebox"><p>Code: </p><pre><code>if {condition} {# true} else {# false}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Dec 19, 2014 4:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sedition]]></name></author>
		<updated>2014-12-17T22:54:29-04:00</updated>

		<published>2014-12-17T22:54:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103373#p103373</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103373#p103373"/>
		<title type="html"><![CDATA[Re: help please flags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103373#p103373"><![CDATA[
the correct thing would be<br><div class="codebox"><p>Code: </p><pre><code>#### tcl ####set flagaccess "mnofb"bind pub - !control controlbind pub - .control controlproc control {nick host hand chan text} {global flagaccess if {(![matchattr $hand $flagaccess $chan]) &amp;&amp; ([onchan $nick $chan])} {   putquick "PRIVMSG $chan :\2sorry $nick :/\2 I feel it you have no privileges. =)" ; return 0 } puthelp "NOTICE $chan :$nick all the commands are in wwww.tets1." }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11854">Sedition</a> — Wed Dec 17, 2014 10:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sedition]]></name></author>
		<updated>2014-12-17T22:35:31-04:00</updated>

		<published>2014-12-17T22:35:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103372#p103372</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103372#p103372"/>
		<title type="html"><![CDATA[help please flags]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103372#p103372"><![CDATA[
this tcl lacks something so that he says (you have no privileges)<br><br>the tcl talks each other that denege the order why the common user has no privileges<br>and the bot makes it know like message in the channel<div class="codebox"><p>Code: </p><pre><code>bind pub o|o !control controlbind pub o|o .control controlproc control {nick host hand chan text} {global flagaccess if {(![matchattr $hand $flagaccess $chan]) &amp;&amp; ([onchan $nick $chan])} {putquick "PRIVMSG $chan :\2sorry $nick :/\2 I feel it you have no privileges. =)" ; return 0} puthelp "NOTICE $chan :$nick all the commands are in wwww.tets1." }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11854">Sedition</a> — Wed Dec 17, 2014 10:35 pm</p><hr />
]]></content>
	</entry>
	</feed>
