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

	<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-01-09T14:05:36-04:00</updated>

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

		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-01-09T14:05:36-04:00</updated>

		<published>2003-01-09T14:05:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15093#p15093</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15093#p15093"/>
		<title type="html"><![CDATA[Re: hm..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15093#p15093"><![CDATA[
<blockquote class="uncited"><div>You are right, there will be extra \'s, but these simbols is not important in nicks or channel names also they are not printed in messages, when they r sent to an IRC server.</div></blockquote>  Simply, you are wrong in assuming this.<br><blockquote class="uncited"><div>I think the author of this topic should try my suggested method and then say to us who was right. Do you agree with this strikelight?</div></blockquote>  No,  I hole-heartedly do not agree.<br><blockquote class="uncited"><div>Also I want to know about other methods to fix this problem. SO, strikelight, if you have any ideas write them, please. I'm realy interested in this  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> .</div></blockquote>  Papillion and ppslim have already answered his question with PROPER solutions.  Your "solution" just adds confusion to the issue for the poor chap.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Jan 09, 2003 2:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pollar]]></name></author>
		<updated>2003-01-09T14:00:48-04:00</updated>

		<published>2003-01-09T14:00:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15090#p15090</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15090#p15090"/>
		<title type="html"><![CDATA[hm..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15090#p15090"><![CDATA[
You are right, there will be extra \'s, but these simbols is not important in nicks or channel names also they are not printed in messages, when they r sent to an IRC server.<br><br>I think the author of this topic should try my suggested method and then say to us who was right. Do you agree with this strikelight?<br><br>Also I want to know about other methods to fix this problem. SO, strikelight, if you have any ideas write them, please. I'm realy interested in this  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"> .<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2501">pollar</a> — Thu Jan 09, 2003 2:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-01-09T13:44:36-04:00</updated>

		<published>2003-01-09T13:44:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15088#p15088</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15088#p15088"/>
		<title type="html"><![CDATA[Re: well..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15088#p15088"><![CDATA[
<blockquote class="uncited"><div>Maybe, but this method works. I use it sometimes and it ALWAYS helps to deal with a problem.</div></blockquote>It won't ALWAYS fix the problem.  There will be times when you will have<br>extra \'s when you actually want the proper data.  You have been lucky if you haven't come across such problems yet, but I suggest you take a look at the mentioned URL so you never do come across such problems.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Jan 09, 2003 1:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pollar]]></name></author>
		<updated>2003-01-09T13:26:16-04:00</updated>

		<published>2003-01-09T13:26:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15086#p15086</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15086#p15086"/>
		<title type="html"><![CDATA[well..]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15086#p15086"><![CDATA[
Maybe, but this method works. I use it sometimes and it ALWAYS helps to deal with a problem.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2501">pollar</a> — Thu Jan 09, 2003 1:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2003-01-09T12:49:25-04:00</updated>

		<published>2003-01-09T12:49:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15082#p15082</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15082#p15082"/>
		<title type="html"><![CDATA[Re: It's simple...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15082#p15082"><![CDATA[
<blockquote class="uncited"><div>Add this proc to your script...:<div class="codebox"><p>Code: </p><pre><code>proc filt {data} {    regsub -all -- \\\\ $data \\\\\\\\ data    regsub -all -- \\\[ $data \\\\\[ data    regsub -all -- \\\] $data \\\\\] data    regsub -all -- \\\} $data \\\\\} data    regsub -all -- \\\{ $data \\\\\{ data    regsub -all -- \\" $data \\\\" data    return $data}</code></pre></div>... and perform filtering $nick before kicking or baning (write it the begin of your binded proc):<br><br><div class="codebox"><p>Code: </p><pre><code>set nick [filt $nick]</code></pre></div>This should work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br>(sorry my english isn't good <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">)</div></blockquote>This is NOT a good solution, as detailed by <a href="http://www.peterre.com/characters.html" class="postlink">http://www.peterre.com/characters.html</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Jan 09, 2003 12:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pollar]]></name></author>
		<updated>2003-01-09T12:31:57-04:00</updated>

		<published>2003-01-09T12:31:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15081#p15081</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15081#p15081"/>
		<title type="html"><![CDATA[It's simple...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15081#p15081"><![CDATA[
Add this proc to your script...:<div class="codebox"><p>Code: </p><pre><code>proc filt {data} {    regsub -all -- \\\\ $data \\\\\\\\ data    regsub -all -- \\\[ $data \\\\\[ data    regsub -all -- \\\] $data \\\\\] data    regsub -all -- \\\} $data \\\\\} data    regsub -all -- \\\{ $data \\\\\{ data    regsub -all -- \\\" $data \\\\\" data    return $data}</code></pre></div>... and perform filtering $nick before kicking or baning (write it the begin of your binded proc):<br><br><div class="codebox"><p>Code: </p><pre><code>set nick [filt $nick]</code></pre></div>This should work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br>(sorry my english isn't good <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=2501">pollar</a> — Thu Jan 09, 2003 12:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-09T09:33:25-04:00</updated>

		<published>2003-01-09T09:33:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15077#p15077</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15077#p15077"/>
		<title type="html"><![CDATA[kickban script problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15077#p15077"><![CDATA[
My knowledge isn't supreme.<br><br>A good portion of my knowledge, comes from readin the manual, practice and seeing other poeple come up with fixes, or ideas.<br><br>I simply adopt these for use in the current topic.<br><br>90% of the problm is spotting a mistake. Even I make mistakes, and proof-reading script, isn't exactly the same as proof-reading a letter. When creating somthing, you will usualy be thinking exactly along the right lines of what it is supposed to do, and how it is gonna do it. It the phase of moving you hands accross the keyboard that makes the mistakes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Jan 09, 2003 9:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-01-09T07:35:34-04:00</updated>

		<published>2003-01-09T07:35:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15069#p15069</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15069#p15069"/>
		<title type="html"><![CDATA[kickban script problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15069#p15069"><![CDATA[
that's how it goes when giving tips early in the morning  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> <br><br>/me bows in recognition of ppslim's supreme knowledge<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Jan 09, 2003 7:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-09T06:55:31-04:00</updated>

		<published>2003-01-09T06:55:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15058#p15058</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15058#p15058"/>
		<title type="html"><![CDATA[kickban script problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15058#p15058"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>utimer $ec_lan_checktimer [ec.lan:check $nick $host $chan]</code></pre></div></div></blockquote>This is errornous, and causes more issues than it fixes.<br><br>The [] in Tcl, cause a command to be avaluated, and it's return string, number or condition to be used in it's place.<br><br>As such, the above code will make the "ec.lan:check" be avuated right away, and the return string from this command, used in it's place. THis causes another timer issue.<br><br>Using this should work however<br><div class="codebox"><p>Code: </p><pre><code>utimer $ec_lan_checktimer [list ec.lan:check $nick $host $chan]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Jan 09, 2003 6:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-01-09T05:59:07-04:00</updated>

		<published>2003-01-09T05:59:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15055#p15055</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15055#p15055"/>
		<title type="html"><![CDATA[kickban script problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15055#p15055"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>utimer $ec_lan_checktimer [ec.lan:check $nick $host $chan]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Jan 09, 2003 5:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-01-08T22:06:17-04:00</updated>

		<published>2003-01-08T22:06:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15044#p15044</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15044#p15044"/>
		<title type="html"><![CDATA[kickban script problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15044#p15044"><![CDATA[
no the bot doesnt die if he wants to kick someone.<br><div class="codebox"><p>Code: </p><pre><code># channels set ec_lan_chans { "#chan1" "#chan2" } # kick text if check successful set ec_lan_kicktext "2channels go away" # timer in seconds till the bot checks the user after join set ec_lan_checktimer "10" bind msg - start ec.lan:start bind join - * ec.lan:joincheck proc ec.lan:start {nick host hand chan} { global ec_lan_chans if {![regexp -nocase $chan $ec_lan_chans match]} {return 0} if {(![isop $nick $chan]) || (![isvoice $nick $chan])} {return 0} putserv "mode $chan +D-c" putserv "privmsg $nick :\0034 live mode in $chan started" } proc ec.lan:joincheck {nick host hand chan args} { global ec_lan_checktimer utimer $ec_lan_checktimer "ec.lan:check $nick $host $chan" } proc ec.lan:check {nick host chan} { global ec_lan_chans ec_lan_kicktext set chancount "0" foreach channel $ec_lan_chans {   if {([isop $nick $channel]) || ([isvoice $nick $channel])} {return 0}   if {[onchan $nick $channel]} {set chancount [expr $chancount +1]} } if {$chancount &gt; 1} {   putquick "mode $chan +b $nick!$host"   putquick "kick $chan $nick $ec_lan_kicktext" } } </code></pre></div>thats the full code. can anybody correct it plz for me ? [/quote]<p>Statistics: Posted by Guest — Wed Jan 08, 2003 10:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-07T05:56:14-04:00</updated>

		<published>2003-01-07T05:56:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14944#p14944</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14944#p14944"/>
		<title type="html"><![CDATA[kickban script problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14944#p14944"><![CDATA[
My guess is tha the proc "ec.lan:check" is called by a timer.<br><br>The code that sets up this timer is missing, and is what is causing the problems.<br><br>It's the fault of some1 creating a script, and using the wrong commands, at the wrong time. In this case, using a list command, but using a string, or using a string command, with a list.<br><br>Note, I recomend fixing this ASAP. Just to make you aware, this bot will die, if you tried to kick the nickname "[die]2day".<br><br>This means this scripts leaves a exploit open.<br><br>It may be the case, that a single command needs changing, but never the less, there is a hole.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Jan 07, 2003 5:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[mortician]]></name></author>
		<updated>2003-01-07T05:22:41-04:00</updated>

		<published>2003-01-07T05:22:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14943#p14943</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14943#p14943"/>
		<title type="html"><![CDATA[kickban script problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14943#p14943"><![CDATA[
perhaps you can take a look at this site: <a href="http://www.peterre.com/characters.html" class="postlink">http://www.peterre.com/characters.html</a><br><br>It tells you how to write scripts that won't choke on brackets and other special characters.<br><br>greetings<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1942">mortician</a> — Tue Jan 07, 2003 5:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-01-07T04:07:23-04:00</updated>

		<published>2003-01-07T04:07:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14941#p14941</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14941#p14941"/>
		<title type="html"><![CDATA[kickban script problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14941#p14941"><![CDATA[
would help if you added some more info, like what kind of bind you are using?<br><br>also I can't see any timers in your script.. so that errormsg makes no sence to me... maybe ppslim (local god <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink">) knows why it's appearing.. but my guess it's some other part of your script or you have a trigger that is beeing used by another script aswell...<br><br>as for your script there is some errors in it.. <br><br>1. I dunno but I would guess your input should be {nick host hand chan} , won't know for sure until you have told us what bind you are using. You have to include all inputs, even if you don't use them.<br><br>2.set chancount [expr $chancount +1] &lt;-- nothing wrong with it but I like avoiding using "expr" if I can <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">, replace it with " incr chancount "<br><br>3.Why are you using putquick? again nothing wrong but I would suggest you use the putkick and and/or pushmode.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Tue Jan 07, 2003 4:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-01-06T22:54:16-04:00</updated>

		<published>2003-01-06T22:54:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14940#p14940</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14940#p14940"/>
		<title type="html"><![CDATA[kickban script problem]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14940#p14940"><![CDATA[
i have a little script problem <br><br>putquick "mode $chan +b $nick!$host" <br>putquick "kick $chan $nick $ec_lan_kicktext" <br><br>but he can´t kick the user. error msg: <br>[02:55] Tcl error in script for 'timer1': <br>[02:55] invalid command name "xxxxx" <br><br>his name would be [xxxxx] then <br>if hes called xxxxx then he gets kicked. but the eggdrop doesnt kick user with [ <br>whats the problem ?<br><br>thats the part:<br>proc ec.lan:check {nick host chan} { <br>global ec_lan_chans ec_lan_kicktext <br>set chancount "0" <br>foreach channel $ec_lan_chans { <br>if {([isop $nick $channel]) || ([isvoice $nick $channel])} {return 0} <br>if {[onchan $nick $channel]} {set chancount [expr $chancount +1]} <br>} <br>if {$chancount &gt; 1} { <br>putquick "mode $chan +b $nick" <br>putquick "kick $chan $nick $ec_lan_kicktext" <br>} <br>}<p>Statistics: Posted by Guest — Mon Jan 06, 2003 10:54 pm</p><hr />
]]></content>
	</entry>
	</feed>
