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

	<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>2002-09-15T11:19:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ProXy]]></name></author>
		<updated>2002-09-15T11:19:41-04:00</updated>

		<published>2002-09-15T11:19:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10918#p10918</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10918#p10918"/>
		<title type="html"><![CDATA[Cant find the bug...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10918#p10918"><![CDATA[
And please look there again. THX<br><br><a href="http://forum.egghelp.org/viewtopic.php?t=2592" class="postlink">http://forum.egghelp.org/viewtopic.php?t=2592</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1729">ProXy</a> — Sun Sep 15, 2002 11:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ProXy]]></name></author>
		<updated>2002-09-15T11:15:02-04:00</updated>

		<published>2002-09-15T11:15:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10917#p10917</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10917#p10917"/>
		<title type="html"><![CDATA[Cant find the bug...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10917#p10917"><![CDATA[
The Script answer when a user is not on the chan. Some nicks only use a pipe and the script stops working. Other nicks use pipes too and the script works fine...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1729">ProXy</a> — Sun Sep 15, 2002 11:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darko``]]></name></author>
		<updated>2002-09-15T10:08:54-04:00</updated>

		<published>2002-09-15T10:08:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10915#p10915</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10915#p10915"/>
		<title type="html"><![CDATA[Cant find the bug...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10915#p10915"><![CDATA[
Who says that user is not on channel: eggdrop itself or your script? What nicks seem to be breaking your bot?<br><br>Also, there is a neat 'onchan' command - read doc/tcl-commands.doc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1881">darko``</a> — Sun Sep 15, 2002 10:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ProXy]]></name></author>
		<updated>2002-09-15T09:45:49-04:00</updated>

		<published>2002-09-15T09:45:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10912#p10912</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10912#p10912"/>
		<title type="html"><![CDATA[Re: Cant find the bug...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10912#p10912"><![CDATA[
<blockquote class="uncited"><div>Hi there, I wrote a script to kick a user via public command!<br>Th script works fine with most nicks, but with some it says that the user is not in the channel! Does anyone know how to write it to catch all possible nicks?<br><div class="codebox"><p>Code: </p><pre><code>set lamerusage "Usage: $lamercommand &lt;nick&gt; \[time\]"bind pub $lamerglobalflag|$lamerlocalflag $lamercommand pub:lamerproc pub:lamer { nick uhost handle channel arg } {global botnick lamerdefaulttime lamerusageif {([llength $arg]==0) || (![string is digit [lindex [split $arg] 1]]) || ([llength [lindex [split $arg] 2]])} {putserv "PRIVMSG $channel :$lamerusage"} elseif {[lsearch -exact [string tolower [chanlist $channel]] [string tolower [lindex [split $arg] 0]]]==-1} {putserv "PRIVMSG $channel :Error: "[lindex [split $arg] 0]" ist nicht in diesem Channel! $lamerusage"} elseif {![botisop $channel]} {putserv "PRIVMSG $channel :$nick: Ja, du Scherzkeks, dann gib mir OP!"} elseif {[string tolower [lindex [split $arg] 0]]==[string tolower $botnick]} {putserv "PRIVMSG $channel :$nick: So blöd bin ich nun wirklich nicht..."} else {if {[llength [lindex [split $arg] 1]]!=0} {set lamerbantime [lindex [split $arg] 1]} else {set lamerbantime $lamerdefaulttime}set lamerhost [getchanhost [lindex [split $arg] 0] $channel]putserv "MODE $channel +b [lindex [split $arg] 0]!$lamerhost"if {$bantime==1} {set lamermins "minute"} else {set lamermins "minutes"}utimer 2 [list putkick $channel [lindex [split $arg] 0] "banned for $lamerbantime $lamermins"] timer $lamerbantime [list putserv "MODE $channel -b [lindex [split $arg] 0]!$lamerhost"]}}</code></pre></div></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1729">ProXy</a> — Sun Sep 15, 2002 9:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ProXy]]></name></author>
		<updated>2002-09-15T07:03:26-04:00</updated>

		<published>2002-09-15T07:03:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10907#p10907</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10907#p10907"/>
		<title type="html"><![CDATA[Cant find the bug...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10907#p10907"><![CDATA[
Hi there, I wrote a script to kick a user via public command!<br>Now i changed something and the error is already: USER not in the channel!<br><br>Can anyone find an error?<br><div class="codebox"><p>Code: </p><pre><code>set lamerusage "Usage: $lamercommand &lt;nick&gt; \[time\]"bind pub $lamerglobalflag|$lamerlocalflag $lamercommand pub:lamerproc pub:lamer { nick uhost handle channel arg } {global botnick lamerdefaulttime lamerusageif {([llength $arg]==0) || (![string is digit [lindex [split $arg] 1]]) || ([llength [lindex [split $arg] 2]])} {putserv "PRIVMSG $channel :$lamerusage"} elseif {[lsearch -exact [string tolower [chanlist $channel]] [string tolower [lindex [split $arg] 0]]]==-1} {putserv "PRIVMSG $channel :Error: \"[lindex [split $arg] 0]\" ist nicht in diesem Channel! $lamerusage"} elseif {![botisop $channel]} {putserv "PRIVMSG $channel :$nick: Ja, du Scherzkeks, dann gib mir OP!"} elseif {[string tolower [lindex [split $arg] 0]]==[string tolower $botnick]} {putserv "PRIVMSG $channel :$nick: So blöd bin ich nun wirklich nicht..."} else {if {[llength [lindex [split $arg] 1]]!=0} {set lamerbantime [lindex [split $arg] 1]} else {set lamerbantime $lamerdefaulttime}set lamerhost [getchanhost [lindex [split $arg] 0] $channel]putserv "MODE $channel +b [lindex [split $arg] 0]!$lamerhost"if {$bantime==1} {set lamermins "minute"} else {set lamermins "minutes"}utimer 2 [list putkick $channel [lindex [split $arg] 0] "banned for $lamerbantime $lamermins"] timer $lamerbantime [list putserv "MODE $channel -b [lindex [split $arg] 0]!$lamerhost"]}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1729">ProXy</a> — Sun Sep 15, 2002 7:03 am</p><hr />
]]></content>
	</entry>
	</feed>
