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

	<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>2008-06-28T13:53:43-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-06-28T13:53:43-04:00</updated>

		<published>2008-06-28T13:53:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83783#p83783</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83783#p83783"/>
		<title type="html"><![CDATA[on 3r kick = remuser.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83783#p83783"><![CDATA[
it work, but dont change flag when an user kick to other user with different name . ex:<div class="codebox"><p>Code: </p><pre><code>^Modo^ is nor7on@Colmillo.users.undernet.orgNombre : Visita: ------------Canales : @#chan1 @#chan2 @#chan3Servidor : *.undernet.org - The Undernet UnderworldModo is Logged how: Colmillo&lt;Nor7on^&gt; .whois Modo&lt;Chasse&gt; HANDLE    PASS NOTES FLAGS           LAST&lt;Chasse&gt; Modo      no       0 bflo            17:28 (#Madrid)&lt;Chasse&gt;   HOSTS: *!*@Colmillo.users.undernet.org&lt;Chasse&gt;   ADDRESS: xx.xxx.xxx.x&lt;Chasse&gt;      users: xxxx, bots: xxxx</code></pre></div>when ^Modo^(Colmillo) kick via X to me, Chasse can't change flag to Colmillo or ^Modo^.'cause don't find Colmillo or ^Modo^ in userlist.<br><br>so there is some way to instert a database for:<br><br>$username = $hand<br><br>example:<br><br>Colmillo = Modo<br>Alask = Alaska<br>Ligre = Felino<br><br>if it finds "Colmillo" in the kick message, it read the database for change flag to Modo.<br>if it finds "Ligre" in the kick message, it read the database for change flag to Felino.<br>etc...<br><br>some suggestion? it's possible?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Sat Jun 28, 2008 1:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-06-28T11:49:45-04:00</updated>

		<published>2008-06-28T11:49:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83781#p83781</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83781#p83781"/>
		<title type="html"><![CDATA[on 3r kick = remuser.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83781#p83781"><![CDATA[
<blockquote class="uncited"><div>i have windrop 1.6.18 i paste this code exactly<br><div class="codebox"><p>Code: </p><pre><code>variable adminlist "Nor7on^"bind kick - * xstuff:kickproc xstuff:kick {nick host hand chan target reason} {   if {[matchattr [nick2hand $target $chan] b|b $chan] || [matchattr [nick2hand $target $chan] o|o $chan]} {      set kicker [string trim [lindex [split $reason] 0] {()}]      set hand [nick2hand $kicker $chan]      if {[string match -nocase "\*" [lindex [split $hand] 0] } {         xstuff:admin "X ha utilizado para patada $target. No puedo suspender $kicker. Este usuario no tiene asa."         return 0      } elseif {[lindex [split $hand] 0] == ""} {         xstuff:admin "X ha utilizado para patada $target. No puedo suspender $kicker. No se puede encontrar este apodo en irc por más tiempo.."         return 0      }      if {[matchattr $hand E]} {         deluser $hand         putserv "PRIVMSG X :REMUSER $chan $kicker"         return 1      } elseif {[matchattr $hand Y]} {         chattr $hand -Y+E         putserv "PRIVMSG X :SUSPEND $chan $kicker 3d"         return 1      } else {         chattr $hand +Y         putserv "PRIVMSG X :SUSPEND $chan $kicker 2d"         putlog "Suspendiendo el username $kicker y cambiando flag a $hand"         return 1      }   } else {      return 0   }}proc xstuff:admin {text} {   foreach admin $::adminlist {      putserv "privmsg $admin :$text"   }}putlog "Suspend and remuser"</code></pre></div>when some1 kickme get this error in partyline.<br><div class="codebox"><p>Code: </p><pre><code>&lt;Chasse&gt; [15:45] Tcl error [xstuff:kick]: missing close-bracket</code></pre></div></div></blockquote>I fixed it, see the code above where I originally posted it with adminlist config setting. There was indeed a missing closing bracket on the string match that has since been addressed. It will now work as intended for you, and when it doesn't will message one of your admin's why it isn't doing what is expected.<div class="codebox"><p>Code: </p><pre><code>      if {[string match -nocase "\*" [lindex [split $hand] 0] } { </code></pre></div><div class="codebox"><p>Code: </p><pre><code>      if {[string match -nocase "\*" [lindex [split $hand] 0]] } { </code></pre></div>Top is incorrect, missing bracket. Bottom is correct, brackets align. This is the error you see.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Jun 28, 2008 11:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-06-28T11:47:19-04:00</updated>

		<published>2008-06-28T11:47:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83780#p83780</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83780#p83780"/>
		<title type="html"><![CDATA[on 3r kick = remuser.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83780#p83780"><![CDATA[
i have windrop 1.6.18 i paste this code exactly<br><div class="codebox"><p>Code: </p><pre><code>variable adminlist "Nor7on^"bind kick - * xstuff:kickproc xstuff:kick {nick host hand chan target reason} {   if {[matchattr [nick2hand $target $chan] b|b $chan] || [matchattr [nick2hand $target $chan] o|o $chan]} {      set kicker [string trim [lindex [split $reason] 0] {()}]      set hand [nick2hand $kicker $chan]      if {[string match -nocase "\*" [lindex [split $hand] 0] } {         xstuff:admin "X ha utilizado para patada $target. No puedo suspender $kicker. Este usuario no tiene asa."         return 0      } elseif {[lindex [split $hand] 0] == ""} {         xstuff:admin "X ha utilizado para patada $target. No puedo suspender $kicker. No se puede encontrar este apodo en irc por más tiempo.."         return 0      }      if {[matchattr $hand E]} {         deluser $hand         putserv "PRIVMSG X :REMUSER $chan $kicker"         return 1      } elseif {[matchattr $hand Y]} {         chattr $hand -Y+E         putserv "PRIVMSG X :SUSPEND $chan $kicker 3d"         return 1      } else {         chattr $hand +Y         putserv "PRIVMSG X :SUSPEND $chan $kicker 2d"         putlog "Suspendiendo el username $kicker y cambiando flag a $hand"         return 1      }   } else {      return 0   }}proc xstuff:admin {text} {   foreach admin $::adminlist {      putserv "privmsg $admin :$text"   }}putlog "Suspend and remuser"</code></pre></div>when some1 kickme get this error in partyline.<br><div class="codebox"><p>Code: </p><pre><code>&lt;Chasse&gt; [15:45] Tcl error [xstuff:kick]: missing close-bracket</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Sat Jun 28, 2008 11:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-06-28T11:41:31-04:00</updated>

		<published>2008-06-28T11:41:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83779#p83779</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83779#p83779"/>
		<title type="html"><![CDATA[on 3r kick = remuser.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83779#p83779"><![CDATA[
Use the edited script above, forgot a simple bracket on the string match.. DOH! Humans being human, this is what we do, we make mistakes.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Jun 28, 2008 11:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-06-28T11:29:12-04:00</updated>

		<published>2008-06-28T11:29:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83777#p83777</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83777#p83777"/>
		<title type="html"><![CDATA[on 3r kick = remuser.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83777#p83777"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>&lt;Chasse&gt; [15:28] #Nor7on# set errorInfo&lt;Chasse&gt; Currently: missing close-bracket&lt;Chasse&gt; Currently:     ("if" test expression)&lt;Chasse&gt; Currently:     while compiling&lt;Chasse&gt; Currently: "if {[string match -nocase "\*" [lindex [split $hand] 0] } {&lt;Chasse&gt; Currently:          xstuff:admin "$kicker has used X to kick $target. I cannot suspend $kicker. This ..."&lt;Chasse&gt; Currently:     ("if" then script line 4)&lt;Chasse&gt; Currently:     while compiling&lt;Chasse&gt; Currently: "if {[matchattr [nick2hand $target $chan] b|b $chan] || [matchattr [nick2hand $target $chan] o|o $chan]} {&lt;Chasse&gt; Currently:       set kicker [string trim [lindex [split..."&lt;Chasse&gt; Currently:     (compiling body of proc "xstuff:kick", line 2)&lt;Chasse&gt; Currently:     invoked from within&lt;Chasse&gt; Currently: "xstuff:kick $_kick1 $_kick2 $_kick3 $_kick4 $_kick5 $_kick6"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Sat Jun 28, 2008 11:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-06-28T11:45:13-04:00</updated>

		<published>2008-06-28T11:11:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83776#p83776</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83776#p83776"/>
		<title type="html"><![CDATA[on 3r kick = remuser.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83776#p83776"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>variable adminlist "nick1 nick2 nick3"bind kick - * xstuff:kickproc xstuff:kick {nick host hand chan target reason} {   if {[matchattr [nick2hand $target $chan] b|b $chan] || [matchattr [nick2hand $target $chan] o|o $chan]} {      set kicker [string trim [lindex [split $reason] 0] {()}]      set hand [nick2hand $kicker $chan]      if {[string match -nocase "\*" [lindex [split $hand] 0]] } {         xstuff:admin "X ha utilizado para patada $target. No puedo suspender $kicker. Este usuario no tiene asa."         return 0      } elseif {[lindex [split $hand] 0] == ""} {         xstuff:admin "X ha utilizado para patada $target. No puedo suspender $kicker. No se puede encontrar este apodo en irc por más tiempo.."         return 0      }      if {[matchattr $hand E]} {         deluser $hand         putserv "PRIVMSG X :REMUSER $chan $kicker"         return 1      } elseif {[matchattr $hand Y]} {         chattr $hand -Y+E         putserv "PRIVMSG X :SUSPEND $chan $kicker 3d"         return 1      } else {         chattr $hand +Y         putserv "PRIVMSG X :SUSPEND $chan $kicker 2d"         putlog "Suspendiendo el username $kicker y cambiando flag a $hand"         return 1      }   } else {      return 0   }}proc xstuff:admin {text} {   foreach admin $::adminlist {      putserv "privmsg $admin :$text"   }}putlog "Suspend and remuser"</code></pre></div>There are two instances where admins will be needed. Fill the admin list at top with a list of nicks you want alerted when the suspend script cannot: a) find the nickname on irc b) cannot find the handle record for nick<br><br>Edit: corrected missing bracket according to post below, all is well now.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Sat Jun 28, 2008 11:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-06-28T10:43:36-04:00</updated>

		<published>2008-06-28T10:43:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83775#p83775</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83775#p83775"/>
		<title type="html"><![CDATA[on 3r kick = remuser.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83775#p83775"><![CDATA[
hi metroid.<br><br>the script only recognizes the $kicker but not the $hand<br>yeah suspend the username, but no recognizes $hand.<br><br>what happend ;/.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Sat Jun 28, 2008 10:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2008-06-28T09:17:22-04:00</updated>

		<published>2008-06-28T09:17:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83770#p83770</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83770#p83770"/>
		<title type="html"><![CDATA[on 3r kick = remuser.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83770#p83770"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind kick - * xstuff:kickproc xstuff:kick {nick host hand chan target reason} {   if {[matchattr [nick2hand $target $chan] b|b $chan] || [matchattr [nick2hand $target $chan] o|o $chan]} {      set kicker [string trim [lindex [split $reason] 0] {()}]      set hand [nick2hand $kicker]      if {[matchattr $hand E]} {         deluser $hand         putserv "PRIVMSG X :REMUSER $chan $kicker"         return 1      } elseif {[matchattr $hand Y]} {         chattr $hand -Y+E         putserv "PRIVMSG X :SUSPEND $chan $kicker 3d"         return 1      } else {         chattr $hand +Y         putserv "PRIVMSG X :SUSPEND $chan $kicker 2d"         putlog "Suspendiendo el username $kicker y cambiando flag a $hand"         return 1      }   }} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5078">metroid</a> — Sat Jun 28, 2008 9:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-06-17T09:15:55-04:00</updated>

		<published>2008-06-17T09:15:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83585#p83585</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83585#p83585"/>
		<title type="html"><![CDATA[on 3r kick = remuser.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83585#p83585"><![CDATA[
buff i try but can't fix this  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Tue Jun 17, 2008 9:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-06-16T17:53:27-04:00</updated>

		<published>2008-06-16T17:53:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83577#p83577</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83577#p83577"/>
		<title type="html"><![CDATA[on 3r kick = remuser.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83577#p83577"><![CDATA[
try the edited code above, fixes that problem.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Mon Jun 16, 2008 5:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-06-16T15:47:09-04:00</updated>

		<published>2008-06-16T15:47:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83576#p83576</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83576#p83576"/>
		<title type="html"><![CDATA[on 3r kick = remuser.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83576#p83576"><![CDATA[
thanks speechles, its work...<br><br>but have a little problem... don't find the user.<br><br>i have an user at userlist of my eggdrop: XCarlos<br>urs nickname in IRC is: Carlos<br><br>so, the $hand don't change flag to XCarlos, it do this: chattr Carlos +Y<br>but Carlos is not an user in the userlist.<br><br>someting wrong?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Mon Jun 16, 2008 3:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-06-16T15:24:32-04:00</updated>

		<published>2008-06-16T15:24:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83575#p83575</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83575#p83575"/>
		<title type="html"><![CDATA[on 3r kick = remuser.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83575#p83575"><![CDATA[
ok i try.<br><br>one momet.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Mon Jun 16, 2008 3:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-06-16T17:52:57-04:00</updated>

		<published>2008-06-16T15:18:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83574#p83574</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83574#p83574"/>
		<title type="html"><![CDATA[on 3r kick = remuser.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83574#p83574"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind kick - * xstuff:kickproc xstuff:kick {nick host hand chan target reason} {if {[matchattr [nick2hand $target $chan] b|b $chan] || [matchattr [nick2hand $target $chan] o|o $chan]} {set kicker [string trim [lindex [split $reason] 0] {()}]if {[string match -nocase "\*" [lindex [split $hand] 0] } {set hand [nick2hand $kicker]}if {[matchattr $hand E]} {deluser $handputserv "PRIVMSG X :REMUSER $chan $kicker"return 1} elseif {[matchattr $hand Y]} {chattr $hand -Y+Eputserv "PRIVMSG X :SUSPEND $chan $kicker 3d"return 1} else {chattr $hand +Yputserv "PRIVMSG X :SUSPEND $chan $kicker 2d"putlog "Suspendiendo el username $kicker y cambiando flag a $hand"return 1}} else {return 0}}putlog "Suspend and remuser" </code></pre></div>You misplaced a curly brace, and forgot to construct your if statements in the correct conditional order. You realize, since everything is handled within the procedure (invoked by a public kick bind), using 'return' statements isn't really necessary at all, right? <br><br>Edit: try again.. works<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Mon Jun 16, 2008 3:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-06-16T08:34:24-04:00</updated>

		<published>2008-06-16T08:34:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83565#p83565</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83565#p83565"/>
		<title type="html"><![CDATA[on 3r kick = remuser.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83565#p83565"><![CDATA[
Hi.<br><br>I have this code, it suspend when a Op kicked other Op via X.<br><br>So i want add when is first kick, suspend only 3Days. if kick again, suspend for 5 days, and if continue one kick more, my eggdrop run this comand: <br>.-user $kicker(user)<br>.msg x remuser #mychan username of kicker.<br><br>but the code only put chattr +Y, if continue, don't put -Y+E <br><br>something wrong?<br><br>code:<div class="codebox"><p>Code: </p><pre><code>bind kick - * xstuff:kickproc xstuff:kick {nick host hand chan target reason} {global knick    if {[matchattr [nick2hand $target $chan] b|b $chan] || [matchattr [nick2hand $target $chan] o|o $chan]} {    set kicker [string trim [lindex [split $reason] 0] {()}]set knick [nick2hand $kicker]if {$hand == "*"} {set hand $kicker}           chattr $hand +Y      putserv "PRIVMSG X :SUSPEND $chan $kicker 2d"putlog "Suspendiendo el username $kicker y cambiando flag a $hand"          return 0} elseif {([matchattr $hand Y])} {  chattr $hand -Y+E      putserv "PRIVMSG X :SUSPEND $chan $kicker 3d"          return 1} elseif {([matchattr $hand E])} {  deluser $hand      putserv "PRIVMSG X :REMUSER $chan $kicker"          return 1} }putlog "Suspend and remuser"</code></pre></div>some1 can helpme? <br><br>Thanks. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Mon Jun 16, 2008 8:34 am</p><hr />
]]></content>
	</entry>
	</feed>
