<?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/8341" />

	<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>2004-10-31T11:37:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-31T11:37:41-04:00</updated>

		<published>2004-10-31T11:37:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42429#p42429</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42429#p42429"/>
		<title type="html"><![CDATA[TCL needed help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42429#p42429"><![CDATA[
There is nothing complicated between his code and my code. Didn't modify anything in the original procedure, just added an extra proc, so the bot doesn't remove un-necessary modes, i.e. it doesn't remove modes which aren't set in the channel.<br><br>That is because when floods happen other people also set modes, and remove modes and I've seen on alot of channels causes a mode flood, so if other people do mode floods, we don't want the bot to do it atleast.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Oct 31, 2004 11:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2004-10-30T19:46:59-04:00</updated>

		<published>2004-10-30T19:46:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42420#p42420</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42420#p42420"/>
		<title type="html"><![CDATA[TCL needed help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42420#p42420"><![CDATA[
user's code way way too simple, you have complicated it too much for a few changes... <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_surprised.gif" width="15" height="15" alt=":o" title="Surprised"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Oct 30, 2004 7:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-30T08:37:51-04:00</updated>

		<published>2004-10-30T08:37:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42413#p42413</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42413#p42413"/>
		<title type="html"><![CDATA[TCL needed help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42413#p42413"><![CDATA[
I'm using the locking system on my bot with another script and it works fine for me, plus it is proving to be very effective especially for channel notice and long text floods. So much effective that I've removed sentinel.tcl from my bot as it made the bot alot slower, and replaced it by adding a clone kicker detecting fast joins. I modified the lock timer to be removed after 10secs and it works fine for me.<br><br>Here are my settings, if we replace them into this script:<br><div class="codebox"><p>Code: </p><pre><code>bind splt - * netsplit:lock proc netsplit:lock {n u h c {r ""}} {  global netsplit_lock  if {![info exists netsplit_lock($c)]} {  if {[botisop $c] &amp;&amp; ![string match *m* [getchanmode $c]]} {   putquick "MODE $c +m" -next; utimer 10 [list remove:lock $c]   putquick "PRIVMSG $c :Netsplit detected - Channel has been locked to +m for 10 secs." -next  }  set netsplit_locked($c) "+m.already.locked"  utimer 15 [list unset netsplit_lock($c)] }; return 0}proc remove:lock {c} { if {[string match *m* [getchanmode $c]] &amp;&amp; [botisop $c]} {  putquick "MODE $c -m" -next; return  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat Oct 30, 2004 8:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Stealthx]]></name></author>
		<updated>2004-10-29T13:30:30-04:00</updated>

		<published>2004-10-29T13:30:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42387#p42387</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42387#p42387"/>
		<title type="html"><![CDATA[TCL needed help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42387#p42387"><![CDATA[
<blockquote class="uncited"><div>Try delaying the timer interval say, to 30 secs or more and then check</div></blockquote>Right now, my coding is...<br><div class="codebox"><p>Code: </p><pre><code>bind splt - * netsplit:lock proc netsplit:lock {n u h c {r " "}} { global netsplit_lock if {![info exists netsplit_lock($c)]} { if {![string match *m* [scan [getchanmode $c] %s]]} { pushmode $c +m puthelp "PRIVMSG $c :Netsplit detected, channel will be set to moderated for 30 seconds." utimer 30 [list pushmode $c -m] } set netsplit_lock($c) "#abc" utimer 30 [list unset netsplit_lock($c)] } }</code></pre></div>But doesn't work, the bot doesn't set +m to the channel anymore and I see no error in the TCL. What's wrong?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5493">Stealthx</a> — Fri Oct 29, 2004 1:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-29T10:35:08-04:00</updated>

		<published>2004-10-29T10:35:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42381#p42381</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42381#p42381"/>
		<title type="html"><![CDATA[TCL needed help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42381#p42381"><![CDATA[
Try delaying the timer interval say, to 30 secs or more and then check<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Fri Oct 29, 2004 10:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Stealthx]]></name></author>
		<updated>2004-10-29T08:12:33-04:00</updated>

		<published>2004-10-29T08:12:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42371#p42371</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42371#p42371"/>
		<title type="html"><![CDATA[TCL needed help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42371#p42371"><![CDATA[
<blockquote class="uncited"><div>When did the split occur?</div></blockquote>What do you mean by "when"?<br><br>Nope, I do not have any other TCL which send stuff to the server on splits. My bot is only on 3 channels (opped).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5493">Stealthx</a> — Fri Oct 29, 2004 8:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-29T06:32:01-04:00</updated>

		<published>2004-10-29T06:32:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42367#p42367</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42367#p42367"/>
		<title type="html"><![CDATA[TCL needed help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42367#p42367"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>::20:22:31:: &lt;@Bot&gt; Netsplit detected, channel set to +m for 15 secs. <br>::20:22:32:: * Bot sets mode: +m <br>::20:22:35:: * Bot sets mode: -m</div></blockquote>Although I've set the timer to 15secs.</div></blockquote>When did the split occur? Do you have any other scripts sending stuff to the server on splits? Is your bot in many channels that are moded +m by this script? Try adding a flushmode after the first pushmode<div class="codebox"><p>Code: </p><pre><code>pushmode $c +mflushmode $c</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Oct 29, 2004 6:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Stealthx]]></name></author>
		<updated>2004-10-29T01:23:48-04:00</updated>

		<published>2004-10-29T01:23:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42364#p42364</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42364#p42364"/>
		<title type="html"><![CDATA[TCL needed help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42364#p42364"><![CDATA[
<blockquote class="uncited"><div>How long did it take to mode the channel -m?</div></blockquote>It's depends. Sometime the bot would take up to 15 secs (one or two time) and majority it only took 1-3 secs and the bot would -m to the channel. Just like this -<br><blockquote class="uncited"><div>::20:22:31:: &lt;@Bot&gt; Netsplit detected, channel set to +m for 15 secs. <br>::20:22:32:: * Bot sets mode: +m <br>::20:22:35:: * Bot sets mode: -m</div></blockquote>Although I've set the timer to 15secs.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5493">Stealthx</a> — Fri Oct 29, 2004 1:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-28T15:35:11-04:00</updated>

		<published>2004-10-28T15:35:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42357#p42357</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42357#p42357"/>
		<title type="html"><![CDATA[TCL needed help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42357#p42357"><![CDATA[
There could be a few more seconds added before the -m is sent due to the internal delay to prevent flooding. Removing the brackets ([]) will not change this. How long did it take to mode the channel -m?<br><br>list makes a list <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> (which is what utimer expects - passing it a string like you do now is not a good idea)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Oct 28, 2004 3:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Stealthx]]></name></author>
		<updated>2004-10-28T08:32:43-04:00</updated>

		<published>2004-10-28T08:32:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42337#p42337</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42337#p42337"/>
		<title type="html"><![CDATA[TCL needed help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42337#p42337"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>Could anyone see what's wrong with the coding?</div></blockquote>Yes...anyone could see it. (Compare your code to mine)</div></blockquote>Thanks for your answer but I've change the [ ] to " ", the reason I've changed is because the timer doesn't work. Although it did +m and -m, but definitely not after the time that the timer (15sec) set <br><div class="codebox"><p>Code: </p><pre><code>utimer 15 [list pushmode $c -m]</code></pre></div>And I don't know the reason why.<br><br>Oh btw, what does the "list" means in this code?<br><div class="codebox"><p>Code: </p><pre><code>utimer 15 [list unset netsplit_lock($c)]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5493">Stealthx</a> — Thu Oct 28, 2004 8:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-28T05:29:41-04:00</updated>

		<published>2004-10-28T05:29:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42331#p42331</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42331#p42331"/>
		<title type="html"><![CDATA[TCL needed help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42331#p42331"><![CDATA[
<blockquote class="uncited"><div>Could anyone see what's wrong with the coding?</div></blockquote>Yes...anyone could see it. (Compare your code to mine)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Oct 28, 2004 5:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Stealthx]]></name></author>
		<updated>2004-10-28T03:27:48-04:00</updated>

		<published>2004-10-28T03:27:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42324#p42324</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42324#p42324"/>
		<title type="html"><![CDATA[TCL needed help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42324#p42324"><![CDATA[
Hi guys, I've edited the script but the timer doesn't seems to work, as in the bot doesn't -m after sometime.<br><div class="codebox"><p>Code: </p><pre><code>bind splt - * netsplit:lock proc netsplit:lock {n u h c {r ""}} { global netsplit_lock if {![info exists netsplit_lock($c)]} { if {![string match *m* [scan [getchanmode $c] %s]]} { pushmode $c +m puthelp "PRIVMSG $c :Netsplit detected, channel set to +m for 15 secs." utimer 15 "list pushmode $c -m" } set netsplit_lock($c) "#abc" utimer 15 "list unset netsplit_lock($c)"} }</code></pre></div>Could anyone see what's wrong with the coding?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5493">Stealthx</a> — Thu Oct 28, 2004 3:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-27T12:39:27-04:00</updated>

		<published>2004-10-27T12:39:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42303#p42303</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42303#p42303"/>
		<title type="html"><![CDATA[TCL needed help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42303#p42303"><![CDATA[
Hehe, yeah I use pushmode with flushmode alot in my scripts, although I never knew it could be as fast as putquick '-next' or putdccraw. I'll modify my current scripts to enforce it as well.<br><br>*user* is a revered one now!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Oct 27, 2004 12:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-27T10:35:09-04:00</updated>

		<published>2004-10-27T10:35:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42298#p42298</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42298#p42298"/>
		<title type="html"><![CDATA[TCL needed help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42298#p42298"><![CDATA[
<blockquote class="uncited"><div>Ps: Congrats for the 1000st post. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"></div></blockquote>thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><blockquote class="uncited"><div>Hmm... anyway pushmode would be slower as well, when dealing with floods and when you want to set locks +m, +i or whatever, we should use a faster queue I suppose, like I intended to do.</div></blockquote>putquick is using the same queue as pushmode...if you want to speed it up, just add a flushmode.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Oct 27, 2004 10:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-27T10:21:40-04:00</updated>

		<published>2004-10-27T10:21:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42296#p42296</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42296#p42296"/>
		<title type="html"><![CDATA[TCL needed help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42296#p42296"><![CDATA[
Hmm... anyway pushmode would be slower as well, when dealing with floods and when you want to set locks +m, +i or whatever, we should use a faster queue I suppose, like I intended to do.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Oct 27, 2004 10:21 am</p><hr />
]]></content>
	</entry>
	</feed>
