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

	<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-28T23:41:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[mm]]></name></author>
		<updated>2004-10-28T23:41:11-04:00</updated>

		<published>2004-10-28T23:41:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42363#p42363</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42363#p42363"/>
		<title type="html"><![CDATA[ignore banned users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42363#p42363"><![CDATA[
great script. <br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5145">mm</a> — Thu Oct 28, 2004 11:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[reallove]]></name></author>
		<updated>2004-10-28T06:17:35-04:00</updated>

		<published>2004-10-28T06:17:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42334#p42334</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42334#p42334"/>
		<title type="html"><![CDATA[ignore banned users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42334#p42334"><![CDATA[
thanks for the script and for the explanations <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=5314">reallove</a> — Thu Oct 28, 2004 6:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-28T05:28:03-04:00</updated>

		<published>2004-10-28T05:28:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42330#p42330</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42330#p42330"/>
		<title type="html"><![CDATA[ignore banned users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42330#p42330"><![CDATA[
'.dump' sends stuff directly to the server. Doing "MODE #somechan +b" is the way to fetch the banlist of a channel. You should never need to do that again as the bot will take care of it when joining your channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Oct 28, 2004 5:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[reallove]]></name></author>
		<updated>2004-10-28T02:16:11-04:00</updated>

		<published>2004-10-28T02:16:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42323#p42323</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42323#p42323"/>
		<title type="html"><![CDATA[ignore banned users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42323#p42323"><![CDATA[
mmm .. now it's a great job <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> thank you !<br>I have only one last question : what does " .dump MODE #channel +b " make ? I .help dump,visited the URL,but didn't understand a lot.Should I type this command everytime the bot rehashes? Or if I restart it ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5314">reallove</a> — Thu Oct 28, 2004 2:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-27T17:26:43-04:00</updated>

		<published>2004-10-27T17:26:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42317#p42317</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42317#p42317"/>
		<title type="html"><![CDATA[ignore banned users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42317#p42317"><![CDATA[
<blockquote class="uncited"><div>ok,thanks,seems it's working.<br>But what's this,on the .ignore list? <div class="codebox"><p>Code: </p><pre><code>Currently ignoring:  [  1] +b (expires at 22:25)        b2i: b2i        Started 22:10</code></pre></div></div></blockquote>it was due to a bug which is fixed (i edited the post)<br>load the new script and do .dump MODE #channel +b again <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>You might also want to make the ignores permanent. (To avoid having ignores removed before the bans are gone) If you want this, change "{newignore $m b2i b2i}" to "{newignore $m b2i b2i 0}" and "{newignore $b b2i b2i}" to "{newignore $b b2i b2i 0}"<br><br>(I thought making them non-permanent by default would be a good idea as you might not like the script and if it created alot of ignores, having them expire some time would save you some work removing ignores by hand)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Oct 27, 2004 5:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[reallove]]></name></author>
		<updated>2004-10-27T16:16:46-04:00</updated>

		<published>2004-10-27T16:16:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42316#p42316</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42316#p42316"/>
		<title type="html"><![CDATA[ignore banned users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42316#p42316"><![CDATA[
ok,thanks,seems it's working.<br>But what's this,on the .ignore list? <div class="codebox"><p>Code: </p><pre><code>Currently ignoring:  [  1] +b (expires at 22:25)        b2i: b2i        Started 22:10</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5314">reallove</a> — Wed Oct 27, 2004 4:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-10-27T15:23:12-04:00</updated>

		<published>2004-10-27T15:23:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42315#p42315</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42315#p42315"/>
		<title type="html"><![CDATA[ignore banned users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42315#p42315"><![CDATA[
hehe ic..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Wed Oct 27, 2004 3:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-27T15:09:18-04:00</updated>

		<published>2004-10-27T15:09:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42314#p42314</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42314#p42314"/>
		<title type="html"><![CDATA[ignore banned users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42314#p42314"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>foreach {m r . . h} [join [ignorelist]] { </div></blockquote>what do the dots stand for ?</div></blockquote>they're just variable names like the rest of that list, but i don't use them, so i gave them a strange name like that <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Oct 27, 2004 3:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-10-27T15:09:10-04:00</updated>

		<published>2004-10-27T15:09:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42313#p42313</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42313#p42313"/>
		<title type="html"><![CDATA[ignore banned users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42313#p42313"><![CDATA[
ok i didn't know u could set a variable into a dot<br><blockquote class="uncited"><div>brain:~# tclsh<br>% set . 1<br>1<br>% puts ${.}<br>1<br>%</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Wed Oct 27, 2004 3:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-10-27T15:07:42-04:00</updated>

		<published>2004-10-27T15:07:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42312#p42312</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42312#p42312"/>
		<title type="html"><![CDATA[ignore banned users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42312#p42312"><![CDATA[
<blockquote class="uncited"><div>foreach {m r . . h} [join [ignorelist]] { </div></blockquote>what do the dots stand for ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Wed Oct 27, 2004 3:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-27T17:25:27-04:00</updated>

		<published>2004-10-27T15:05:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42311#p42311</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42311#p42311"/>
		<title type="html"><![CDATA[ignore banned users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42311#p42311"><![CDATA[
Why not mirror the banlist from the channel in question instead of checking the entire banlist every time your bot recieves a message?<br>This script should add/remove ignores based on the banlist in #channel (change the variable if your channel's called something else)<div class="codebox"><p>Code: </p><pre><code>set b2i_chan "#channel"bind raw - 368 b2i:368bind mode - "$b2i_chan ?b" b2i:modeproc b2i:368 {f k a} {scan $a %*s%s cif {![string eq -noc $c $::b2i_chan]} return# add new ignores if there's new bansforeach {m . .} [join [chanbans $c]] {if {![isignore $m]} {newignore $m b2i b2i}}# remove ignores placed by this script that are not in the banlistforeach {m r . . h} [join [ignorelist]] {if {$r=="b2i"&amp;&amp;$h=="b2i"&amp;&amp;![ischanban $m $c]} {killignore $m}}}proc b2i:mode {n u h c m b} {if {$m=="+b"} {# add ignoreif {![isignore $b]} {newignore $b b2i b2i}} else {# remove if ignored by this scriptif {[isignore $b]} {foreach {m r . . h} [join [ignorelist]] {if {$b==$m&amp;&amp;$r=="b2i"&amp;&amp;$h=="b2i"} {killignore $b; break}}}}}</code></pre></div>When loading the script for the first time you can force the bot to update the ignore list by doing ".dump MODE #channel +b" on your partyline.<br>(edit: changed a variable name (twice <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz">))<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Oct 27, 2004 3:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ofloo]]></name></author>
		<updated>2004-10-27T15:05:47-04:00</updated>

		<published>2004-10-27T15:01:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42310#p42310</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42310#p42310"/>
		<title type="html"><![CDATA[ignore banned users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42310#p42310"><![CDATA[
so u wana ignore all the users on ur ban list right <br><br>they allready sad how <br><div class="codebox"><p>Code: </p><pre><code>foreach x [banlist $chan] {  newigore ...}</code></pre></div>u could match it but as i recal ignores are global .. and not channel based ..<br><blockquote class="uncited"><div>newignore &lt;hostmask&gt; &lt;creator&gt;  &lt;comment&gt; [lifetime]</div></blockquote>so no point realy..<br><br>and using banlist [channel] will only return bans for that channel so an other reason no point matching it either ..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3151">Ofloo</a> — Wed Oct 27, 2004 3:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[reallove]]></name></author>
		<updated>2004-10-27T13:05:27-04:00</updated>

		<published>2004-10-27T13:05:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42306#p42306</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42306#p42306"/>
		<title type="html"><![CDATA[ignore banned users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42306#p42306"><![CDATA[
well,I need this on an Undernet channel.And the banlist is 99% with adresses like this: *!*@numeric.IP or *!*@hostname . Well,is it possible to create a script like this ? And no,I don't know anything about tcl scripting,so if someone can help me,write the whole code <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5314">reallove</a> — Wed Oct 27, 2004 1:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-10-27T10:32:20-04:00</updated>

		<published>2004-10-27T10:32:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42297#p42297</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42297#p42297"/>
		<title type="html"><![CDATA[ignore banned users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42297#p42297"><![CDATA[
<blockquote class="uncited"><div>[string match -nocase *$chanban* $uhost]</div></blockquote>This has been discussed <a href="http://forum.egghelp.org/viewtopic.php?t=8356#41440" class="postlink">before</a>. 'string match' doesn't match the way most ircds do and the mask is matched against nick!user@host, so a ban on a nick would never match the way you do it (even if you're lucky and there's no brackets/backslashes screwing up the actual matching.)<br><br>oh..and btw: 'msgm' is not triggered if the message is matched by a 'msg' bind iirc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Oct 27, 2004 10:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-27T10:17:08-04:00</updated>

		<published>2004-10-27T10:17:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42294#p42294</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42294#p42294"/>
		<title type="html"><![CDATA[ignore banned users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42294#p42294"><![CDATA[
That is fairly easy todo:<br><br>You can use this on "<strong class="text-strong">bind msgm</strong>"<br><div class="codebox"><p>Code: </p><pre><code>foreach chanban [chanbans $chan] { if {([string match -nocase *$chanban* $uhost])} { #do stuff</code></pre></div>And if a ban matches that user's host<br>You can use "newignore" to ignore that persons host.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Oct 27, 2004 10:17 am</p><hr />
]]></content>
	</entry>
	</feed>
