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

	<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>2006-09-13T14:38:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2006-09-13T14:38:10-04:00</updated>

		<published>2006-09-13T14:38:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66313#p66313</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66313#p66313"/>
		<title type="html"><![CDATA[Some Addition for +enforcebans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66313#p66313"><![CDATA[
You've recived an answer on your <a href="http://forum.egghelp.org/viewtopic.php?t=12335" class="postlink">other</a> thread. Stick to one thread with the question on the same issue.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Wed Sep 13, 2006 2:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[i.m.offline]]></name></author>
		<updated>2006-09-13T05:40:36-04:00</updated>

		<published>2006-09-13T05:40:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66301#p66301</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66301#p66301"/>
		<title type="html"><![CDATA[Some Addition for +enforcebans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66301#p66301"><![CDATA[
Once again I need little more update in this, I did request in other post but got no response.<br><br>Script works almost charm except I want to add one more option to make it more secured.<br><br>I should deop the nick &amp; release the banmask, if the ban mask matchs more than x number of users. Just to prevent masskick in channel. <br><br>Thx again in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7438">i.m.offline</a> — Wed Sep 13, 2006 5:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[i.m.offline]]></name></author>
		<updated>2006-03-04T21:57:16-04:00</updated>

		<published>2006-03-04T21:57:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60869#p60869</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60869#p60869"/>
		<title type="html"><![CDATA[Some Addition for +enforcebans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60869#p60869"><![CDATA[
Now it look most perfect. Thanks Alchera <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7438">i.m.offline</a> — Sat Mar 04, 2006 9:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-03-04T10:11:08-04:00</updated>

		<published>2006-03-04T10:11:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60853#p60853</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60853#p60853"/>
		<title type="html"><![CDATA[Some Addition for +enforcebans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60853#p60853"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {![botisop $chan]} {return}</code></pre></div>Add the above line before:<div class="codebox"><p>Code: </p><pre><code>if {![string match ...</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Sat Mar 04, 2006 10:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[i.m.offline]]></name></author>
		<updated>2006-03-04T07:59:53-04:00</updated>

		<published>2006-03-04T07:59:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60850#p60850</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60850#p60850"/>
		<title type="html"><![CDATA[Some Addition for +enforcebans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60850#p60850"><![CDATA[
Can I request for little more update in it, it should check for bans only if OPed in channel. because else its causing error. Thanks in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7438">i.m.offline</a> — Sat Mar 04, 2006 7:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[i.m.offline]]></name></author>
		<updated>2006-03-04T06:39:59-04:00</updated>

		<published>2006-03-04T06:39:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60848#p60848</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60848#p60848"/>
		<title type="html"><![CDATA[Some Addition for +enforcebans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60848#p60848"><![CDATA[
It works charm MeTroiD. Thanks a million <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7438">i.m.offline</a> — Sat Mar 04, 2006 6:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-03-04T05:41:43-04:00</updated>

		<published>2006-03-04T05:41:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60847#p60847</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60847#p60847"/>
		<title type="html"><![CDATA[Some Addition for +enforcebans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60847#p60847"><![CDATA[
He checks banmasks, thus checks nicknamess too.<br><br>I've seen nicknames with [ in it. <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=5078">metroid</a> — Sat Mar 04, 2006 5:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2006-03-04T03:28:03-04:00</updated>

		<published>2006-03-04T03:28:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60846#p60846</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60846#p60846"/>
		<title type="html"><![CDATA[Some Addition for +enforcebans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60846#p60846"><![CDATA[
I for one haven't seen a host that has a [ in it, have you?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sat Mar 04, 2006 3:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-03-03T15:50:40-04:00</updated>

		<published>2006-03-03T15:50:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60829#p60829</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60829#p60829"/>
		<title type="html"><![CDATA[Some Addition for +enforcebans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60829#p60829"><![CDATA[
No because string match does strange things with [ (i think \ too, not sure)<br><br>Try it yourself<br><div class="codebox"><p>Code: </p><pre><code>% string match -nocase \[moo\] \[moo\]0% string match \[moo\] \[moo\]0% string match *\[mo\]* moo1%</code></pre></div>This what i meant with string match acting like regexp<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Fri Mar 03, 2006 3:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2006-03-03T14:54:28-04:00</updated>

		<published>2006-03-03T14:54:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60826#p60826</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60826#p60826"/>
		<title type="html"><![CDATA[Some Addition for +enforcebans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60826#p60826"><![CDATA[
what's with the "string map"? Only the 'string match -nocase' should do fine.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Mar 03, 2006 2:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-03-03T12:14:33-04:00</updated>

		<published>2006-03-03T12:14:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60820#p60820</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60820#p60820"/>
		<title type="html"><![CDATA[Some Addition for +enforcebans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60820#p60820"><![CDATA[
Because string match is slightly gay, some banmasks would never match a user like that.<br><br>So we use a string map to get rid of \ and [ because string match will try to behave a little like regexp if you don't.<br><div class="codebox"><p>Code: </p><pre><code>bind mode - "* +b" enforcebans  proc enforcebans {nick uhost hand chan mc ban} {  if {![string match -nocase [string map {"\\" "\\\\" "\[" "\\["} $ban] $::botname]} {    foreach n [chanlist $chan] {      if {[string match -nocase [string map {"\\" "\\\\" "\[" "\\["} $ban] $n![getchanhost $n $chan]]} {        putkick $chan $n "Banned: Enforcing ban set by $nick 14($ban)"       }     }   } else {    pushmode $chan -o $nick  }} </code></pre></div>This is the best i'm willing to do, the bot will unban any masks that match his nick/host anyway.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Fri Mar 03, 2006 12:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[i.m.offline]]></name></author>
		<updated>2006-03-03T05:32:39-04:00</updated>

		<published>2006-03-03T05:32:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=60806#p60806</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=60806#p60806"/>
		<title type="html"><![CDATA[Some Addition for +enforcebans]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=60806#p60806"><![CDATA[
I have a code for enforce ban (I want to use this instead of +enforcebans, as I want to show own kick msg etc). <br>I would request if some one can make it little more protected, i.e. it shouldn't kick if the ban mask is *!*@* &amp; if ban mask matches bot's nick. if banmask is set to *!*@* then bot shall remove the unban the mask &amp; deop the Nick and if banmask matches to bots nick then just release the ban. Thanks in advance. <br><div class="codebox"><p>Code: </p><pre><code>bind mode - "* +b" enforcebans   proc enforcebans {nick uhost hand chan mc ban} {   foreach n [chanlist $chan] {    if {[string match -nocase $ban $n![getchanhost $n $chan]]} {     putkick $chan $n "Banned: Enforcing ban set by $nick 14($ban)"    }   }  }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7438">i.m.offline</a> — Fri Mar 03, 2006 5:32 am</p><hr />
]]></content>
	</entry>
	</feed>
