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

	<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-01-05T03:17:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-01-05T03:17:00-04:00</updated>

		<published>2002-01-05T03:17:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3475#p3475</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3475#p3475"/>
		<title type="html"><![CDATA[Hmmmm, LoL tools bug]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3475#p3475"><![CDATA[
Yeah it worked. Thanks alot mate, I should email this to the author since it should be really be fixed for any further versions of the script.<p>Statistics: Posted by Guest — Sat Jan 05, 2002 3:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ian-Highlander]]></name></author>
		<updated>2002-01-04T13:21:00-04:00</updated>

		<published>2002-01-04T13:21:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3456#p3456</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3456#p3456"/>
		<title type="html"><![CDATA[Hmmmm, LoL tools bug]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3456#p3456"><![CDATA[
from what I can tell (and I only looked at it quickly) changing all instances of $mask to $banmask should fix this problem.<br><br>But I have got a bad headache so dont blame me if this is wrong lol<br><br>Regards<br><br>Ian-Highlander<br><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=17">Ian-Highlander</a> — Fri Jan 04, 2002 1:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-01-04T13:06:00-04:00</updated>

		<published>2002-01-04T13:06:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3455#p3455</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3455#p3455"/>
		<title type="html"><![CDATA[Hmmmm, LoL tools bug]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3455#p3455"><![CDATA[
here is the code which is used and i did a !ban on someone and that error happened <br><br>### !BAN &lt;nick|mask&gt; [time] [reason]<br><br>proc pub_lol_ban {nick host hand chan arg} {<br>set arg [charfilter $arg]<br>global lol botnick<br>if {![check $hand $nick $host]} {<br>if {$lol(silent) == 1 || [checksilent $hand]} {return 0}<br>                puthelp "NOTICE $nick :You need to be identified to use this function. Type .identhelp in the partyline for more info. : 02/msg $botnick id &lt;password&gt;02 or 02/msg $botnick silent &lt;password&gt;02 to no more receive this warning."<br>return 0<br>}<br>if {[llength $arg] &lt; 1} {<br>puthelp "NOTICE $nick :02Usage:02 [string trim $lol(cmdchar)]ban &lt;nick|mask&gt; [time] [reason]"<br>return 0<br>}<br>set who [lindex $arg 0]<br>set ti [lindex $arg 1]<br>if {[number $ti]} {<br>set reason [lrange $arg 2 end]<br>} {<br>set ti ""<br>set reason [lrange $arg 1 end]<br>}<br>if {$reason == ""} {set reason "requested"}<br>if {[string first "*" $who] != -1 || [string first "?" $who] != -1} {<br>if {$reason == "requested"} {set reason "MaskBan: $who"}<br>set who [strlwr $who]<br>set bancount 0<br>set flags "-$lol(no_ban_flags)&amp;-$lol(no_ban_flags)"<br>if {$lol(no_ban_flags) == ""} {<br>set list [strlwr [chanlist $chan]]<br>} {<br>set list [strlwr [chanlist $chan $flags]]<br>}<br>foreach chanuser $list {<br>set banmask ""<br>if {[string match [strlwr $who] [strlwr $chanuser]] &amp;&amp; $chanuser != [strlwr $botnick] &amp;&amp; $chanuser != [strlwr $nick] &amp;&amp; ![isop $chanuser $chan] &amp;&amp; ![isvoice $chanuser $chan]} {<br>incr bancount<br>set ipmask [lindex [split [maskhost $chanuser![getchanhost $chanuser $chan]] "@"] 1]<br>set userm [lindex [split [getchanhost $chanuser $chan] "@"] 0]<br>set banmask *!*$userm@$ipmask<br>newchanban $chan $banmask $nick $reason<br>if {[botisop $chan]} {<br>putserv "MODE $chan +b $banmask"<br>putserv "KICK $chan $chanuser :$nick: $reason"<br>}<br>}<br>}<br>if {$bancount == 0} {<br>                        puthelp "NOTICE $nick :Sorry but no one matches this mask."<br>}<br>} {<br>if {![onchan $who $chan]} {<br>                        puthelp "NOTICE $nick :Sorry, but I don't see $who in $chan."<br>return 0<br>}<br>if {[strlwr $who] == [strlwr $botnick]} {<br>puthelp "NOTICE $nick :Yeah right, like I'm going to let you ban ME!"<br>return 0<br>}<br>if {[nick2hand $who $chan] != "*"} {<br>if {$hand != [nick2hand $who $chan]} {<br>if {[matchattr [nick2hand $who $chan] o|o $chan] &amp;&amp; ![matchattr $hand o|o $chan]} {<br>                                        puthelp "NOTICE $nick :Sorry, you must be an operator to ban an operator."<br>return 0<br>}<br>if {([matchattr [nick2hand $who $chan] m|m $chan] || [matchattr [nick2hand $who $chan] b]) &amp;&amp; ![matchattr $hand m|m $chan]} {<br>                                        puthelp "NOTICE $nick :Sorry, you must be a master to ban a master or a bot."<br>return 0<br>}<br>}<br>}<br>set ipmask [lindex [split [maskhost $who![getchanhost $who $chan]] "@"] 1]<br>set userm [lindex [split [getchanhost $who $chan] "@"] 0]<br>set banmask *!*$userm@$ipmask<br>if {[botisop $chan]} {<br>if {[isop $who $chan]} {pushmode $chan -o $who}<br>putserv "MODE $chan +b $banmask"<br>putserv "KICK $chan $who :$reason"<br>}<br>switch $ti {<br>""<br>{<br>newchanban $chan $banmask $nick $reason<br>puthelp "NOTICE $nick :New mask added: $mask"<br>}<br>0<br>{<br>newchanban $chan $banmask $nick $reason $ti<br>puthelp "NOTICE $nick :New mask added permanently: $mask"<br>}<br>default<br>{<br>newchanban $chan $banmask $nick $reason $ti<br>puthelp "NOTICE $nick :New mask added for $ti minutes: $mask"<br>}<br>}<br>}<br>return 0<br>}<br><p>Statistics: Posted by Guest — Fri Jan 04, 2002 1:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-01-04T11:06:00-04:00</updated>

		<published>2002-01-04T11:06:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3451#p3451</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3451#p3451"/>
		<title type="html"><![CDATA[Hmmmm, LoL tools bug]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3451#p3451"><![CDATA[
In the script, and more exactly in the proc called to make such a ban, you're sure that the variable "mask" is called in parameters ? Or maybe as a global var ?<br><br>++<br>Fred<p>Statistics: Posted by Guest — Fri Jan 04, 2002 11:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-01-04T08:12:00-04:00</updated>

		<published>2002-01-04T08:12:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=3447#p3447</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=3447#p3447"/>
		<title type="html"><![CDATA[Hmmmm, LoL tools bug]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=3447#p3447"><![CDATA[
Who here find that the scripting for the ban mask with the latest version of lols tool doesn't work all the time.<br><br>6:06:56 PM &lt;redhat&gt; [18:10] TCL error [pub_lol_ban]: can't read "mask": no such variable<p>Statistics: Posted by Guest — Fri Jan 04, 2002 8:12 am</p><hr />
]]></content>
	</entry>
	</feed>
