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

	<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>2003-06-16T06:27:46-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-06-16T06:27:46-04:00</updated>

		<published>2003-06-16T06:27:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21907#p21907</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21907#p21907"/>
		<title type="html"><![CDATA[2 quick questions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21907#p21907"><![CDATA[
well.... raw 312 will not give you any channels, just serverinfo <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>and use split before you use list commands on variables, ie.. [lindex [split $arg] 2] ..... same goes with $rsserver, and make sure you have "" around $rsbanreason, or it will give an error if you have more than 1 word in it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Mon Jun 16, 2003 6:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nso]]></name></author>
		<updated>2003-06-16T05:58:39-04:00</updated>

		<published>2003-06-16T05:58:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21906#p21906</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21906#p21906"/>
		<title type="html"><![CDATA[2 quick questions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21906#p21906"><![CDATA[
hi.<br><br>it wont work tho.. it still denies to do anything when someone with a \ in their nick joins the channel..<br>any other suggestions? i really dont understand why :p<br><br>[edit]<br><br>did some testing now.. <br>entered a  putserv "privmsg $rschan :$isonserver"  below set isonserver in the second proc.. and what it returned when someone, with a nick using \ at the end, was this<div class="codebox"><p>Code: </p><pre><code>&lt;test2k&gt; :who</code></pre></div>when infact it should return the irc-channel<br><br>im guessing that the \ in the nick disables something.. how do i go around this?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3074">nso</a> — Mon Jun 16, 2003 5:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nso]]></name></author>
		<updated>2003-06-16T04:39:58-04:00</updated>

		<published>2003-06-16T04:39:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21903#p21903</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21903#p21903"/>
		<title type="html"><![CDATA[2 quick questions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21903#p21903"><![CDATA[
thanks for the assistance.. will try it out <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=3074">nso</a> — Mon Jun 16, 2003 4:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-06-16T04:20:38-04:00</updated>

		<published>2003-06-16T04:20:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21902#p21902</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21902#p21902"/>
		<title type="html"><![CDATA[2 quick questions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21902#p21902"><![CDATA[
try using<div class="codebox"><p>Code: </p><pre><code>putkick $rschan $rsnick "$rsbanreason"</code></pre></div> for kicking<br>.. and change<div class="codebox"><p>Code: </p><pre><code>if { $rsnick == $rslastnick } {</code></pre></div> to<div class="codebox"><p>Code: </p><pre><code>if { [string equal $rsnick $rslastnick] } {</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Mon Jun 16, 2003 4:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nso]]></name></author>
		<updated>2003-06-16T04:05:58-04:00</updated>

		<published>2003-06-16T04:05:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21901#p21901</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21901#p21901"/>
		<title type="html"><![CDATA[2 quick questions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21901#p21901"><![CDATA[
goodie <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>i thought it was kindoff funny since i didn't manage to reproduce the error on my own testeggie ^^<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3074">nso</a> — Mon Jun 16, 2003 4:05 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-16T04:04:53-04:00</updated>

		<published>2003-06-16T04:04:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21900#p21900</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21900#p21900"/>
		<title type="html"><![CDATA[2 quick questions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21900#p21900"><![CDATA[
Oups, yah, setting strict-host to 1 will do fine with your ban mask.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Jun 16, 2003 4:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nso]]></name></author>
		<updated>2003-06-16T04:07:35-04:00</updated>

		<published>2003-06-16T04:03:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21899#p21899</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21899#p21899"/>
		<title type="html"><![CDATA[2 quick questions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21899#p21899"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set rschan "#bla"set rsserver "bla bla"set rskickreason "bla"set rsmsgonkick "\[blabla\] bla"set rsbanreason "bla"set rsmsgonban "\[blabla\]  bla"bind JOIN - * rsjoinbind RAW * 312 rswhoisset rsnick ""set rslastnick ""proc rsjoin { nick uhost hand chan } {global rschan rsnickif { $chan != $rschan } { return 0 }putserv "WHOIS $nick"set rsnick "$nick"}proc rswhois { from key arg } {global rsnick rschan rsserver rskickreason rslastnick rsmsgonkick rsmsgonban rsbanreasonset isonserver [lindex $arg 2]set isonserver [string tolower $isonserver]for { set rscounter 0 } { $rscounter &lt; [llength $rsserver] } { incr rscounter } {                if {$isonserver == [lindex $rsserver $rscounter]} {if { $rsnick == $rslastnick } {set rsbanhost [maskhost [getchanhost $rsnick $rschan]]newban $rsbanhost AutoBan_ServerKick $rsbanreason 5 noneputserv "KICK $rschan $rsnick :$rsbanreason"putserv "PRIVMSG $rsnick :$rsmsgonban"set rslastnick ""} else {putserv "KICK $rschan $rsnick :$rskickreason"set rslastnick $rsnickputserv "PRIVMSG $rsnick :$rsmsgonkick"}        }}}</code></pre></div>edited.. forgot some stuff on the top <br><br>it's public anyhoo, dunno why i didn't just paste it in the first post :p<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3074">nso</a> — Mon Jun 16, 2003 4:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-06-16T03:58:29-04:00</updated>

		<published>2003-06-16T03:58:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21898#p21898</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21898#p21898"/>
		<title type="html"><![CDATA[2 quick questions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21898#p21898"><![CDATA[
<blockquote class="uncited"><div># 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</div></blockquote>^^from the config-file<br>as for question 1... we need to see the parts of your code where you are handling that variable..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Mon Jun 16, 2003 3:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nso]]></name></author>
		<updated>2003-06-16T03:51:15-04:00</updated>

		<published>2003-06-16T03:51:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21897#p21897</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21897#p21897"/>
		<title type="html"><![CDATA[2 quick questions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21897#p21897"><![CDATA[
i dont think it would be wise to ban hosts..<br>but thanks anyway <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=3074">nso</a> — Mon Jun 16, 2003 3:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-06-16T03:43:32-04:00</updated>

		<published>2003-06-16T03:43:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21896#p21896</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21896#p21896"/>
		<title type="html"><![CDATA[2 quick questions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21896#p21896"><![CDATA[
try this:<div class="codebox"><p>Code: </p><pre><code>set rsbanhost "*!*@[lindex [split [getchanhost $rsnick $rschan] @] 1]"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Jun 16, 2003 3:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nso]]></name></author>
		<updated>2003-06-16T03:44:56-04:00</updated>

		<published>2003-06-16T03:39:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=21895#p21895</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=21895#p21895"/>
		<title type="html"><![CDATA[2 quick questions]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=21895#p21895"><![CDATA[
Hi.<br><br>Im currently working on a tcl-script and have fond some weird "bugs" I haven't been able to figure out what is.<br><br>1:<br>I get the nick of the last erson whom joined with $nick in an JOIN bind.<br>I set a global variable to that nick, and then when I call the global variable in another proc and process it.. it seems like it won't kick people with special chars in their name.. I do no editing/checking other then comparing the whois on the user with a predefined pattern..<br>Any idea why this might be so?<br>Actually it seems like the only characters this apply to are \ .. atleast in my testing<br><br>2:<br>When using these two lines<blockquote class="uncited"><div>set rsbanhost [maskhost [getchanhost $rsnick $rschan]]<br>newban $rsbanhost AutoBan $rsbanreason 5 none</div></blockquote>it did this<blockquote class="uncited"><div>[08:48:34] * Joins: Kakarotto (~<a href="mailto:Kakarotto@ti400720a080-2656.bb.online.no">Kakarotto@ti400720a080-2656.bb.online.no</a>)<br>[08:48:38] * skansen sets mode: +b *!Kakarotto@*.bb.online.no<br>[08:48:40] * Kakarotto was kicked by defacto (banned)<br>[08:48:52] * Joins: Kakarotto (~<a href="mailto:Kakarotto@ti400720a080-2656.bb.online.no">Kakarotto@ti400720a080-2656.bb.online.no</a>)</div></blockquote>it doesnt seem to catch the ~..<br>any quick n dirty solution to this one? <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=3074">nso</a> — Mon Jun 16, 2003 3:39 am</p><hr />
]]></content>
	</entry>
	</feed>
