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

	<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-09-16T00:28:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-09-16T00:28:11-04:00</updated>

		<published>2003-09-16T00:28:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27125#p27125</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27125#p27125"/>
		<title type="html"><![CDATA[TCL error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27125#p27125"><![CDATA[
The spy:part proc should have 5 not 4 "arguments" .. check the tcl-commands.doc file for the bind part <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Sep 16, 2003 12:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Pitchat]]></name></author>
		<updated>2003-09-16T00:18:14-04:00</updated>

		<published>2003-09-16T00:18:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=27124#p27124</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=27124#p27124"/>
		<title type="html"><![CDATA[TCL error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=27124#p27124"><![CDATA[
Hi i have the spy.tcl script and when people join or part channel i got that error :<br><br>[22:37] Tcl error [spy:part]: wrong # args: should be "spy:part nick uhost hand channel"<br>i look but i do not figure what is wrong<br><br>heres the code <br><div class="codebox"><p>Code: </p><pre><code># Spy v1.1# *Description:#  Mouchard qui rapporte tout ce qui se passe sur un channel, notices, querys#  et party-line (attention aux Excess Flood possibles).# *Commandes:#  -pub: !spy &lt;on/off&gt;####################################################################### Configuration du Script ################################################################################################################ Channels à espionnes :set spy(record) "#aide-moi.net"# Channels où moucharder :set spy(chans) "#pitchat"# Activer le mode Spy (0=non, 1=oui) :set spy(active) 1# Préfixe des commandes du Bot :set spy(command) "!"# Anti flood sur les commandes du Bot x:y (x=nombre de fois, y=secondes) :set spy(flood) 5:10# Ignorer l'utilisateur après son flood (0=non, 1=oui) :set spy(ignore) 1# Si oui, combien de temps (en minutes) :set spy(ignoretime) 1# Laisser faire les utilisateurs ayant certains flags :set spy(ignflags) "fmnov|fmnov"###############################################################################################################################################################################################################proc spy:flood:init {} {global spy spyfloodset spy(floodnum) [lindex [split $spy(flood) :] 0]set spy(floodtime) [lindex [split $spy(flood) :] 1]set i [expr $spy(floodnum) - 1]while {$i &gt;= 0} {   set spyflood($i) 0   incr i -1}}spy:flood:initproc spy:flood {nick uhost} {global spy spyflood botnickif {$spy(floodnum) == 0} {   return 0}set i [expr $spy(floodnum) - 1]while {$i &gt;= 1} {   set spyflood($i) $spyflood([expr $i - 1])   incr i -1}set spyflood(0) [unixtime]if {[expr [unixtime] - $spyflood([expr $spy(floodnum) - 1])] &lt;= $spy(floodtime)} {   if {$spy(ignore)} {      newignore [join [maskhost *!*[string trimleft $uhost ~]]] $botnick "Flood" $spy(ignoretime)   }   return 1} {   return 0}}bind pub mno|mno $spy(command)spy spy:commandproc spy:command {nick uhost hand channel arg} {global spyif ![matchattr $nick $spy(ignflags) $channel] {   if {[spy:flood $nick $uhost]} {      return 0   }}set mode [lindex $arg 0]if ![string length $mode] {   puthelp "NOTICE $nick :Usage: !spy &lt;on\/off&gt;"   return 0} elseif {$mode == "on"} {   if {([lsearch -exact [string tolower $spy(record)] [string tolower $channel]] != -1) || ($spy(record) == "*")} {      puthelp "NOTICE $nick :Mode Spy déjà activé sur $channel."      return 0   } else {      append spy(record) " $channel"      puthelp "NOTICE $nick :Mode Spy activé sur $channel."      bind join -|- * spy:join      bind part -|- * spy:part      bind ctcp -|- ACTION spy:ctcp      bind mode -|- * spy:modefixed      bind topc -|- * spy:topc      bind sign -|- * spy:sign      bind kick -|- * spy:kick      bind nick -|- * spy:nick      bind pubm -|- * spy:pub      bind msgm -|- * spy:msg      bind notc -|- * spy:notice      return 1   }} elseif {$mode == "off"} {   if {([lsearch -exact [string tolower $spy(record)] [string tolower $channel]] == -1) &amp;&amp; ($spy(record) != "*")} {      puthelp "NOTICE $nick :Mode Spy déjà désactivé sur $channel."      return 0   } else {      regsub -- $channel $spy(record) "" spy(record)      puthelp "NOTICE $nick :Mode Spy désactivé sur $channel."      return 1   }} else {   puthelp "NOTICE $nick :Usage: !spy &lt;on\/off&gt;"   return 0}}if $spy(active) {   bind join -|- * spy:join   bind part -|- * spy:part   bind ctcp -|- ACTION spy:ctcp   bind mode -|- * spy:modefixed   bind topc -|- * spy:topc   bind sign -|- * spy:sign   bind kick -|- * spy:kick   bind nick -|- * spy:nick   bind pubm -|- * spy:pub   bind msgm -|- * spy:msg   bind notc -|- * spy:notice}proc spy:join {nick uhost hand channel} {global spyif {([lsearch -exact [string tolower $spy(record)] [string tolower $channel]] != -1) || ($spy(record) == "*")} {   foreach chan $spy(chans) {      puthelp "PRIVMSG $chan :\[12$channel\] 9$nick ($uhost) has joined $channel"   }   return 1}}proc spy:part {nick uhost hand channel} {global spyif {([lsearch -exact [string tolower $spy(record)] [string tolower $channel]] != -1) || ($spy(record) == "*")} {   foreach chan $spy(chans) {      puthelp "PRIVMSG $chan :\[12$channel\] 9$nick ($uhost) has left $channel"   }   return 1}}proc spy:ctcp {nick uhost hand dest keyword arg} {global spyif {([lsearch -exact [string tolower $spy(record)] [string tolower $dest]] != -1) || ($spy(record) == "*")} {   foreach chan $spy(chans) {      puthelp "PRIVMSG $chan :\[12$dest\] 13* $nick $arg"   }   return 1}}proc spy:modefixed {nick uhost hand channel mode {victim ""}} {global spyif {$victim != ""} { append mode " $victim" }spy:mode $nick $uhost $hand $channel $mode}proc spy:mode {nick uhost hand channel mode} {global spy serverif {([lsearch -exact [string tolower $spy(record)] [string tolower $channel]] != -1) || ($spy(record) == "*")} {   foreach chan $spy(chans) {      if {$nick == ""} {         puthelp "PRIVMSG $chan :\[12$channel\] 9*** [lindex [split $server :] 0] sets mode: $mode"      } else {         puthelp "PRIVMSG $chan :\[12$channel\] 9*** $nick sets mode: $mode"      }   }   return 1}}proc spy:topc {nick uhost hand channel topic} {global spy serverif {([lsearch -exact [string tolower $spy(record)] [string tolower $channel]] != -1) || ($spy(record) == "*")} {   foreach chan $spy(chans) {      if {$nick == ""} {         puthelp "PRIVMSG $chan :\[12$channel\] 9*** [lindex [split $server :] 0] changes topic to '$topic'"      } else {         puthelp "PRIVMSG $chan :\[12$channel\] 9$nick changes topic to '$topic'"      }   }   return 1}}proc spy:sign {nick uhost hand channel reason} {global spyif {([lsearch -exact [string tolower $spy(record)] [string tolower $channel]] != -1) || ($spy(record) == "*")} {   foreach chan $spy(chans) {      puthelp "PRIVMSG $chan :\[12$channel\] 9$nick ($uhost) has quit IRC ($reason)"   }   return 1}}proc spy:kick {nick uhost hand channel knick reason} {global spyforeach chan $spy(chans) {   puthelp "PRIVMSG $chan :\[12$channel\] 9$knick was kicked by $nick ($reason)"}return 1}proc spy:nick {nick uhost hand channel newnick} {global spyif {([lsearch -exact [string tolower $spy(record)] [string tolower $channel]] != -1) || ($spy(record) == "*")} {   foreach chan $spy(chans) {      puthelp "PRIVMSG $chan :\[12$channel\] 9$nick is now known as $newnick"   }   return 1}}proc spy:pub {nick uhost hand channel rest} {global spyif {([lsearch -exact [string tolower $spy(record)] [string tolower $channel]] != -1) || ($spy(record) == "*")} {   foreach chan $spy(chans) {      puthelp "PRIVMSG $chan :\[12$channel\] &lt;$nick&gt; $rest"   }   return 1}}proc spy:msg {nick uhost hand rest} {global spyforeach chan $spy(chans) {   puthelp "PRIVMSG $chan :\[4Private\] &lt;$nick&gt; $rest"}return 1}proc spy:notice {nick uhost hand rest} {global spyforeach chan $spy(chans) {   puthelp "PRIVMSG $chan :\[7Notice\] &lt;$nick&gt; $rest"}return 1}bind chat -|- * spy:chatproc spy:chat {hand idx arg} {global spyforeach chan $spy(chans) {   puthelp "PRIVMSG $chan :\[8Party-Line\] &lt;$hand&gt; $arg"}return 1}bind dcc -|- * spy:dccproc spy:dcc {hand idx arg} {global spyforeach chan $spy(chans) {   puthelp "PRIVMSG $chan :\[8DCC\] &lt;$hand&gt; $arg"}return 1}putlog "Spy v1.1 by Neon loaded!"</code></pre></div>thanks for any help<br><br>Pitchat<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2723">Pitchat</a> — Tue Sep 16, 2003 12:18 am</p><hr />
]]></content>
	</entry>
	</feed>
