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

	<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>2002-09-20T19:54:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2002-09-20T19:54:10-04:00</updated>

		<published>2002-09-20T19:54:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11199#p11199</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11199#p11199"/>
		<title type="html"><![CDATA[NewChanBan Troubles.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11199#p11199"><![CDATA[
That would work? Hmmmm, hadnt thought that was possible. ill give it a go <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Fri Sep 20, 2002 7:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-09-20T19:51:21-04:00</updated>

		<published>2002-09-20T19:51:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11198#p11198</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11198#p11198"/>
		<title type="html"><![CDATA[NewChanBan Troubles.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11198#p11198"><![CDATA[
So convert it inside your proc.<br><br>set seconds [expr $minutes * 60]<br><br>:p<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Sep 20, 2002 7:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2002-09-20T19:38:54-04:00</updated>

		<published>2002-09-20T19:38:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11196#p11196</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11196#p11196"/>
		<title type="html"><![CDATA[NewChanBan Troubles.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11196#p11196"><![CDATA[
Problem is, cause the timer is used with a channel command, its kinda hard to convert 15 minutes into seconds on the fly for some people. <br><br>I have to use timer, as the time can vary immensly<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Fri Sep 20, 2002 7:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darko``]]></name></author>
		<updated>2002-09-20T12:45:11-04:00</updated>

		<published>2002-09-20T12:45:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11187#p11187</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11187#p11187"/>
		<title type="html"><![CDATA[NewChanBan Troubles.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11187#p11187"><![CDATA[
That's because you are using 'timer' that is hooked to hh:MM:ss and only does evaluate if MM &gt; oldMM, regardless of ss. You may consider using utimer 60 which would give you 60 seconds timing in any case.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1881">darko``</a> — Fri Sep 20, 2002 12:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2002-09-20T10:22:23-04:00</updated>

		<published>2002-09-20T10:22:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11166#p11166</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11166#p11166"/>
		<title type="html"><![CDATA[NewChanBan Troubles.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11166#p11166"><![CDATA[
After some more testing, i found the script bans on the minute. So when it reaches HH:mm:00 it will ban, no matter what time the !w3rk was set<br><blockquote class="uncited"><div><br>[15:21:17] &lt;meru|mrrr&gt; !w3rk 1 1 feck off<br>[15:21:20] &lt;Minako&gt; You now have 1 minutes left in irc. Ban will be lifted 1 minutes from the time you are kicked.<br>[15:21:28] &lt;meru|mrrr&gt; aah, this I like <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>[15:21:37] &lt;IWubDBs&gt; heh<br>[15:21:45] * Bless gets popcorn<br>[15:21:59] * Minako sets mode: +b *!?merumrrr@216.105.160.*<br>[15:22:01] * meru|mrrr was kicked by Minako (banned: feck off)</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Fri Sep 20, 2002 10:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2002-09-20T10:13:28-04:00</updated>

		<published>2002-09-20T10:13:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11164#p11164</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11164#p11164"/>
		<title type="html"><![CDATA[NewChanBan Troubles.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11164#p11164"><![CDATA[
Hi<br><br>Well it works perfectly <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Occasionally the timer is a bit off, 1 minute becomes 15 seconds or so. But it works the way i want it to <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>What i want to know is how can i tidy this code up? Tried playing with some of the variables, but it doesnt like me changing it from what it is. Any help?<br><br>Thank you BTW to all of you who helped me get the script running <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><div class="codebox"><p>Code: </p><pre><code>#AFKKick Suite Version 1#Developed by Weirdo#Designed for Single Channel use on #cometanime#AFKKick Variablesset AFKdefbantime "10"set AFKdefreason "AFKKick Suite Version 1"#w3rkKick Variablesset w3rkdefbantime "15"set w3rkdefwarntime "15"set w3rkdefreason "W3rk"set kickmsg2 "Go do the stuff you need to do!"#General Variables#Public Command for the afkkickbind pub - !afk pub:afkkick_kickproc pub:afkkick_kick {nick uhost hand chan text} {global AFKdefbantime AFKdefreason botnick banmaskset bantime [lindex [split $text] 0 ]if {$bantime == ""} {set bantime $AFKdefbantime}set reason [lrange [split $text] 1 end]if {$reason == ""} {set reason $AFKdefreason}set creator $botnickset banmask [maskhost "$nick!$uhost"]set kickmsg "You have requested force timeout from the channel for $bantime minutes."putserv "PRIVMSG $chan :Enforce Away Engaged, Bantime set to $bantime minutes."puthelp "KICK $chan $nick :$kickmsg"newchanban $chan [maskhost "$nick!$uhost"] $creator $reason $bantime }#Public Command for the timer Kickbind pub - !w3rk pub:w3rk_timerproc pub:w3rk_timer {nick uhost hand chan text} {global kickmsg2 bantime2 warntime w3rk_reason knick kchan khost w3rkdefwarntime w3rkdefbantime w3rkdefreasonset warntime [lindex [split $text] 0]if {$warntime == ""} {set warntime $w3rkdefwarntime}set bantime2 [lindex [split $text] 1]if {$bantime2 == ""} {set bantime2 $w3rkdefbantime}set w3rk_reason [lrange [split $text] 2 end]if {$w3rk_reason == ""} {set w3rk_reason $w3rkdefreason}set knick $nickset kchan $chanset khost $uhostset warning "You now have $warntime minutes left in irc. Ban will be lifted $bantime2 minutes from the time you are kicked."puthelp "Privmsg $chan :$warning"putlog "!$nick! Activated Timer Work Script in $chan - kick in $warntime minutes"timer $warntime w3rk_ban}proc w3rk_ban {} {global bantime2 kickmsg2 botnick w3rk_reason knick kchan khostnewchanban $kchan [maskhost "$knick!$khost"] $botnick $w3rk_reason $bantime2putserv "KICK $kchan $knick :$kickmsg2"}putlog "\AFKKick Suite V1 by Weirdo is now loaded"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Fri Sep 20, 2002 10:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darko``]]></name></author>
		<updated>2002-09-19T14:18:44-04:00</updated>

		<published>2002-09-19T14:18:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11119#p11119</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11119#p11119"/>
		<title type="html"><![CDATA[NewChanBan Troubles.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11119#p11119"><![CDATA[
Uhm, you want the kick message to be only one word? Ok, change:<br><br>set reason [lrange [split $text] 1 end]<br><br>to:<br><br>set reason [lindex [split $text] 1]<br><br>That should catch only one word.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1881">darko``</a> — Thu Sep 19, 2002 2:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2002-09-19T12:28:25-04:00</updated>

		<published>2002-09-19T12:28:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11109#p11109</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11109#p11109"/>
		<title type="html"><![CDATA[NewChanBan Troubles.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11109#p11109"><![CDATA[
[17:26:54] &lt;Testy&gt; !afk 10 I am a [censored]<br>[17:26:54] * Minako sets mode: +b *!?testy@216.105.160.*<br>[17:26:55] &lt;Minako&gt; Away Kick Engaging<br>[17:26:56] * Testy was kicked by Minako (banned: I am a [censored])<br><br>Very strange that it doesnt. Does mean it can be more fun <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Screw it, never ever get perfect will it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>17:27:48] &lt;Minako&gt; Channel bans for #cometanime:   (! = not active, * = not placed by bot)<br>[17:27:48] &lt;Minako&gt;   [  6] *!?testy@216.105.160.* (expires at 17:36)<br>[17:27:48] &lt;Minako&gt;         Minako: I am a [censored]<br>[17:27:48] &lt;Minako&gt;         Created 17:26<br><br>As long as it records it right in the bans, which it does, i am happy. Was just curious why it didnt do the right kick message <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>What ill do is change the public message<br><br>putserv "PRIVMSG $chan :Enforce Away Engaged, Bantime set to $bantime minutes."<br><br>And ill remove the kick message <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Thu Sep 19, 2002 12:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-09-19T12:24:13-04:00</updated>

		<published>2002-09-19T12:24:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11108#p11108</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11108#p11108"/>
		<title type="html"><![CDATA[NewChanBan Troubles.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11108#p11108"><![CDATA[
the multi-word reason was because of the [lrange [split $text] 1 end] I added, thought u'd like it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>the kickmsg should work, it does on my bot. Try restarting it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Sep 19, 2002 12:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2002-09-19T12:19:03-04:00</updated>

		<published>2002-09-19T12:19:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11106#p11106</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11106#p11106"/>
		<title type="html"><![CDATA[NewChanBan Troubles.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11106#p11106"><![CDATA[
[17:17:40] &lt;Testy&gt; !afk 2 Multi word testing<br>[17:17:40] * Minako sets mode: +b *!?testy@216.105.160.*<br>[17:17:41] &lt;Minako&gt; Away Kick Engaging<br>[17:17:42] * Testy was kicked by Minako (banned: Multi word testing)<br><br>Well, i like this <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>It does something i didnt expect it to. Which was more than one word in the reason. But it doesnt give the correct kick message which was specified. Enforce bans is off. Any other settings i should know off that does this?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Thu Sep 19, 2002 12:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-09-19T12:10:48-04:00</updated>

		<published>2002-09-19T12:10:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11103#p11103</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11103#p11103"/>
		<title type="html"><![CDATA[NewChanBan Troubles.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11103#p11103"><![CDATA[
in the partyline do: .chanset #channel -enforcebans<br>then: .chansave<br><br>that should give u the kick u want <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Sep 19, 2002 12:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2002-09-19T11:51:10-04:00</updated>

		<published>2002-09-19T11:51:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11100#p11100</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11100#p11100"/>
		<title type="html"><![CDATA[NewChanBan Troubles.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11100#p11100"><![CDATA[
That got it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I changed the Strict host thing in the config from 0 to 1<br><blockquote class="uncited"><div>[16:49:41] * Minako sets mode: +b *!?testy@216.105.160.*<br>[16:49:42] &lt;Minako&gt; Away Kick Engaging<br>[16:49:43] * Testy was kicked by Minako (banned: test)</div></blockquote>That was the effect. Doesnt do the kick i wanted to. Is there a config setting for that as well? As i have never managed to find it personally. She always did it automatically.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Thu Sep 19, 2002 11:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-09-19T11:43:25-04:00</updated>

		<published>2002-09-19T11:43:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11099#p11099</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11099#p11099"/>
		<title type="html"><![CDATA[NewChanBan Troubles.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11099#p11099"><![CDATA[
# Set this to 1 if you don't want your the bot to strip a leading '~'<br># on user@hosts.<br>set strict-host 1<br><br>^^ have u tried editing that in your config?<br><br>or u might wanna try and change<div class="codebox"><p>Code: </p><pre><code>[maskhost "$nick!$uhost"]</code></pre></div>to<div class="codebox"><p>Code: </p><pre><code>[maskhost "$nick!*$uhost"]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Sep 19, 2002 11:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Weirdo]]></name></author>
		<updated>2002-09-19T11:37:28-04:00</updated>

		<published>2002-09-19T11:37:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11098#p11098</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11098#p11098"/>
		<title type="html"><![CDATA[NewChanBan Troubles.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11098#p11098"><![CDATA[
No difference. <br><blockquote class="uncited"><div>[16:35:57] &lt;Testy&gt; !afk 1 test<br>[16:35:57] &lt;Minako&gt; Away Kick Engaging<br>[16:35:58] * Testy was kicked by Minako (You have requested force timeout from the channel for 1 minutes.)<br>[16:36:15] * Joins: Testy (~testy@216.105.160.17)<br><br>[16:36:31] &lt;Minako&gt; ! [  6] *!testy@216.105.160.* (expires at 16:36)<br>[16:36:31] &lt;Minako&gt;         Minako: test<br>[16:36:31] &lt;Minako&gt;         Created 16:35<br>[16:36:59] &lt;Minako&gt; [16:37] No longer banning *!testy@216.105.160.* on #weirdo (expired)</div></blockquote>[/quote]<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1195">Weirdo</a> — Thu Sep 19, 2002 11:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-09-19T11:34:35-04:00</updated>

		<published>2002-09-19T11:34:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11097#p11097</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11097#p11097"/>
		<title type="html"><![CDATA[NewChanBan Troubles.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11097#p11097"><![CDATA[
try unloading that script and try again <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Sep 19, 2002 11:34 am</p><hr />
]]></content>
	</entry>
	</feed>
