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

	<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-02-26T08:01:29-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-02-26T08:01:29-04:00</updated>

		<published>2005-02-26T08:01:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46955#p46955</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46955#p46955"/>
		<title type="html"><![CDATA[questions about a banmaskscript]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46955#p46955"><![CDATA[
You might want to take a look at this as well, if you are trying to make a banmask selector:<br><br><a href="http://forum.egghelp.org/viewtopic.php?t=8741" class="postlink">http://forum.egghelp.org/viewtopic.php?t=8741</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat Feb 26, 2005 8:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-02-25T00:32:39-04:00</updated>

		<published>2005-02-25T00:32:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46910#p46910</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46910#p46910"/>
		<title type="html"><![CDATA[questions about a banmaskscript]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46910#p46910"><![CDATA[
<blockquote class="uncited"><div>- mhh. never heared about but thanks for the tip.</div></blockquote>this suggestion is because of this:<br><a href="http://www.eggheads.org/bugzilla/show_bug.cgi?id=423" class="postlink">http://www.eggheads.org/bugzilla/show_bug.cgi?id=423</a><br>I dont know if there could be also problems just the other way with ~, but I believe it's best to avoid problems, before they even occur <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink">.<br><blockquote class="uncited"><div>now just the question how can i detect ip`s?</div></blockquote>best done with a regular expression: <br><a href="http://forum.egghelp.org/viewtopic.php?t=4319" class="postlink">http://forum.egghelp.org/viewtopic.php?t=4319</a><br><a href="http://www.tcl.tk/man/tcl8.4/TclCmd/re_syntax.htm" class="postlink">http://www.tcl.tk/man/tcl8.4/TclCmd/re_syntax.htm</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Fri Feb 25, 2005 12:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Burke]]></name></author>
		<updated>2005-02-24T21:18:06-04:00</updated>

		<published>2005-02-24T21:18:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46903#p46903</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46903#p46903"/>
		<title type="html"><![CDATA[questions about a banmaskscript]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46903#p46903"><![CDATA[
you can probably save some code using switch and regexp, but it probably won't reduce execution time.<br>- mhh, ok.<br><br>But I would recommned you to use || in the if expression, if the if-body will be the same anyway.<br>- ok<br><br>btw. you dont need :: before BUZAout, you already included the var in the global line.<br>- right, my error.<br><br>oh yes, why do you want to use error!*@* as error ident? i would recommed using -1 for errors (read tcl man for how to "return" errors for more details).<br>- i know. this is only for my self. if 1 proc call those banmask proc with a wrong host because i don`t think about everthing (user not longer on channel) and i would never set +b *!*@ or something. just a little protection.<br><br>PS: your bot might get into trouble when comparing the string ~ within a ban, I just wrote a script within I had to replace it with ? like [string map {~ ?} $uhost].<br>- mhh. never heared about but thanks for the tip.<br><br>now just the question how can i detect ip`s?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5969">Burke</a> — Thu Feb 24, 2005 9:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-02-24T04:02:07-04:00</updated>

		<published>2005-02-24T04:02:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46885#p46885</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46885#p46885"/>
		<title type="html"><![CDATA[questions about a banmaskscript]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46885#p46885"><![CDATA[
you can probably save some code using switch and regexp, but it probably won't reduce execution time.<br>But I would recommned you to use || in the if expression, if the if-body will be the same anyway.<br>btw. you dont need :: before BUZAout, you already included the var in the global line.<br>oh yes, why do you want to use error!*@* as error ident? i would recommed using -1 for errors (read tcl man for how to "return" errors for more details).<br><br>PS: your bot might get into trouble when comparing the string ~ within a ban, I just wrote a script within I had to replace it with ? like [string map {~ ?} $uhost].<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Thu Feb 24, 2005 4:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Burke]]></name></author>
		<updated>2005-02-24T01:03:56-04:00</updated>

		<published>2005-02-24T01:03:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=46884#p46884</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=46884#p46884"/>
		<title type="html"><![CDATA[questions about a banmaskscript]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=46884#p46884"><![CDATA[
hi<br><br>i tryed to make a little script.<br>this will be called in some other procs with<br>get:ban:mask "$BUZAin"<br>and $BUZAin will be always nick!ident@host.<br><div class="codebox"><p>Code: </p><pre><code>proc get:ban:mask { BUZAin } {global ipbanhosts BUZAout botnick botnameputlog "get:ban:mask -- eingangsmask -- $BUZAin"set BUZA [lindex [split $BUZAin "!"] 1]set ::BUZAout "*!$BUZA"if {[string match "*.users.quakenet.org*" $BUZAin]} { set BUZA [lindex [split $BUZAin "@"] 1] ; set ::BUZAout "*!*@$BUZA" }if {[string match "*@*proxad*" $BUZAin]} { set BUZA [lindex [split $BUZAin "@"] 1] ; set ::BUZAout "*!*@$BUZA" }if {[string match "*@*chello*" $BUZAin]} { set BUZA [lindex [split $BUZAin "@"] 1] ; set ::BUZAout "*!*@$BUZA" }if {[string match "*@*kabelbw*" $BUZAin]} { set BUZA [lindex [split $BUZAin "@"] 1] ; set ::BUZAout "*!*@$BUZA" }if {[string match "*@*mediaways*" $BUZAin]} { set BUZA [lindex [split $BUZAin "@"] 1] ; set ::BUZAout "*!*@$BUZA" }[...........................much other.............]if {[string match $botnick $BUZAout]} { set BUZAout "error!*@*" ; putlog "proc get:ban:mask in: $BUZAin out: $BUZAout - botnick" }if {[string match $botname $BUZAout]} { set BUZAout "error!*@*" ; putlog "proc get:ban:mask in: $BUZAin out: $BUZAout - botname" }if { "*!" == $BUZAout } { set BUZAout "error!*@*" ; putlog "proc get:ban:mask in: $BUZAin out: $BUZAout - *!*@*" }if { "*!@*" == $BUZAout } { set BUZAout "error!*@*" ; putlog "proc get:ban:mask in: $BUZAin out: $BUZAout - *!*@*" }if { "*!*@*" == $BUZAout } { set BUZAout "error!*@*" ; putlog "proc get:ban:mask in: $BUZAin out: $BUZAout - *!*@*" }if { "*!*@" == $BUZAout } { set BUZAout "error!*@*" ; putlog "proc get:ban:mask in: $BUZAin out: $BUZAout - *!*@*" }if { "!*@*" == $BUZAout } { set BUZAout "error!*@*" ; putlog "proc get:ban:mask in: $BUZAin out: $BUZAout - *!*@*" }if { "*!@" == $BUZAout } { set BUZAout "error!*@*" ; putlog "proc get:ban:mask in: $BUZAin out: $BUZAout - *!*@*" }putlog "get:ban:mask -- ausgangsmask -- $BUZAout"return $BUZAout}</code></pre></div>That should if the user is in mode +x or use a dynamic host ban *!*@host. If not, it`s mosttimes a bnc/static host and it should ban *!ident@host. Because *!*@host will match to many users which should not be affected.<br><br>Those putlogs will be removed later, for sure. Just for tests.<br>I think i should make it smaller but no idea how.<br><br>Next point, i need to know how can i set that every nick!ident@134.345.454.43 will be masked with *!*@ip ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5969">Burke</a> — Thu Feb 24, 2005 1:03 am</p><hr />
]]></content>
	</entry>
	</feed>
