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

	<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>2005-01-06T04:17:31-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Damnation85]]></name></author>
		<updated>2005-01-06T04:17:31-04:00</updated>

		<published>2005-01-06T04:17:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45045#p45045</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45045#p45045"/>
		<title type="html"><![CDATA[Ban masks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45045#p45045"><![CDATA[
well to answer you both. <br><br>User: Your tweaked mc_8 code without the bugs was, what i was pointing to. being torn apart and commented.<br><br>awyeah: I can see from what you have put the different syntax used for each type of ban mask which was helpful. thank you.<br><br>thank you both for your help so far : o)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5811">Damnation85</a> — Thu Jan 06, 2005 4:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-01-05T22:39:40-04:00</updated>

		<published>2005-01-05T22:39:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45031#p45031</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45031#p45031"/>
		<title type="html"><![CDATA[Ban masks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45031#p45031"><![CDATA[
This is not off-topic really. He wanted to know how to set various banmasks. <br><br>I beleive the pieces of code in the FAQ, topic BANS, are a little sophisticated, so wouldn't you say we should start him from simpler things?<br><br>So if he looks at those 20 banmasks, compare them... any dumb person should get the idea, where to split it from, which lindex to use, and also what is the purpose of maskhost? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>And as for replacing numbers with ?'s or *'s, he can just use string map in the end if he wants to!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Jan 05, 2005 10:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2005-01-05T19:30:20-04:00</updated>

		<published>2005-01-05T19:30:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=45016#p45016</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=45016#p45016"/>
		<title type="html"><![CDATA[huh?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=45016#p45016"><![CDATA[
<blockquote class="uncited"><div>i was wondering if somone could take the ban mask code from the linked topic below and tear it apart</div></blockquote>Which one? (proc)<br><blockquote class="uncited"><div>You are lucky</div></blockquote>Why is he/she lucky? Because you gave a totally off-topic answer? <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 Jan 05, 2005 7:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-01-05T09:04:02-04:00</updated>

		<published>2005-01-05T09:04:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44959#p44959</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44959#p44959"/>
		<title type="html"><![CDATA[Ban masks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44959#p44959"><![CDATA[
You are lucky, here is some old piece of code I found. I used this quite long back ago as my banmask selector. But I upgraded to a better one thanks to MC_8 and user, which is in the posts on the earlier link you gave .<br><div class="codebox"><p>Code: </p><pre><code>#Select the type of banmask to use when banning the advertiser.# 1 - *!*@some.host.com# 2 - *!*@*.host.com# 3 - *!*ident@some.domain.com# 4 - *!*ident@*.host.com# 5 - *!*ident*@*.host.com# 6 - *!*ident*@some.host.com# 7 - nick*!*@*.host.com# 8 - *nick*!*@*.host.com# 9 - nick*!*@some.host.com# 10 - *nick*!*@some.host.com# 11 - nick!ident@some.host.com# 12 - nick!ident@*.host.com# 13 - *nick*!*ident@some.host.com# 14 - nick*!*ident*@some.host.com# 15 - *nick*!*ident*@some.host.com# 16 - nick!*ident*@some.host.com# 17 - nick*!*ident@*.host.com# 18 - nick*!*ident*@*.host.com# 19 - *nick*!*ident@*.host.com# 20 - *nick*!*ident*@*.host.comset advbanmask "4"#Usage:set advertiseban [advertise:banmask $uhost $nick]proc advertise:banmask {uhost nick} { global advbanmask   switch -- $advbanmask {    1 { set banmask "*!*@[lindex [split $uhost @] 1]" }    2 { set banmask "*!*@[lindex [split [maskhost $uhost] "@"] 1]" }    3 { set banmask "*!*$uhost" }    4 { set banmask "*!*[lindex [split [maskhost $uhost] "!"] 1]" }    5 { set banmask "*!*[lindex [split $uhost "@"] 0]*@[lindex [split [maskhost $uhost] "@"] 1]" }    6 { set banmask "*!*[lindex [split $uhost "@"] 0]*@[lindex [split $uhost "@"] 1]" }    7 { set banmask "$nick*!*@[lindex [split [maskhost $uhost] "@"] 1]" }    8 { set banmask "*$nick*!*@[lindex [split [maskhost $uhost] "@"] 1]" }    9 { set banmask "$nick*!*@[lindex [split $uhost "@"] 1]" }    10 { set banmask "*$nick*!*@[lindex [split $uhost "@"] 1]" }    11 { set banmask "$nick*!*[lindex [split $uhost "@"] 0]@[lindex [split $uhost @] 1]" }    12 { set banmask "$nick*!*[lindex [split $uhost "@"] 0]@[lindex [split [maskhost $uhost] "@"] 1]" }    13 { set banmask "*$nick*!*$uhost" }    14 { set banmask "$nick*!*[lindex [split $uhost "@"] 0]*@[lindex [split $uhost "@"] 1]" }    15 { set banmask "*$nick*!*[lindex [split $uhost "@"] 0]*@[lindex [split $uhost "@"] 1]" }    16 { set banmask "$nick!*[lindex [split $uhost "@"] 0]*@[lindex [split $uhost "@"] 1]" }    17 { set banmask "$nick![lindex [split $uhost "@"] 0]@[lindex [split [maskhost $uhost] "@"] 1]" }    18 { set banmask "$nick!*[lindex [split $uhost "@"] 0]*@[lindex [split [maskhost $uhost] "@"] 1]" }    19 { set banmask "*$nick*!*[lindex [split $uhost "@"] 0]@[lindex [split [maskhost $uhost] "@"] 1]" }    20 { set banmask "*$nick*!*[lindex [split $uhost "@"] 0]*@[lindex [split [maskhost $uhost] "@"] 1]" }    default { set banmask "*!*@[lindex [split $uhost @] 1]" }    return $banmask   }}</code></pre></div>Note $uhost: <a href="mailto:ident@some.host.com">ident@some.host.com</a><br>Note $nick: nick<br><br>So, like for example:<br> $nick!$uhost: nick!<a href="mailto:ident@some.host.com">ident@some.host.com</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Wed Jan 05, 2005 9:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Damnation85]]></name></author>
		<updated>2005-01-05T07:48:07-04:00</updated>

		<published>2005-01-05T07:48:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=44953#p44953</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=44953#p44953"/>
		<title type="html"><![CDATA[Ban masks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=44953#p44953"><![CDATA[
i was wondering if somone could take the ban mask code from the linked topic below and tear it apart and comment it line by line stating what each line does and how it does it so that i and proberly many others can learn from the techniques used within the tcl<br><br>well if anyone can, i'd be grateful as it'd expand my knowledge in tcl.<br><br><br>Forum Post:  <a href="http://forum.egghelp.org/viewtopic.php?t=8741&amp;highlight=ban+mask" class="postlink"> Link</a><br><br>Thanx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5811">Damnation85</a> — Wed Jan 05, 2005 7:48 am</p><hr />
]]></content>
	</entry>
	</feed>
