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

	<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-09-15T21:52:41-04:00</updated>

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

		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-09-15T21:52:41-04:00</updated>

		<published>2008-09-15T21:52:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85176#p85176</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85176#p85176"/>
		<title type="html"><![CDATA[relay mode change and kick error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85176#p85176"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc send_mode {nick uhost hand chan mchg victim} {  if {[string first "b" [lindex $mchg 0]] != -1} {    send_across "ban" $chan $nick "$mchg $victim"  }} </code></pre></div>Your tcl version expects a 6th argument used when you bind to mode changes. Mode-change is 5th and the new one, victim, your 6th. This is all you need. Combine the 5th and 6th arguments when calling send_across so the rest of the script can see these together as it expects. Your tcl version is too new for the old mode arrangement this script had.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Mon Sep 15, 2008 9:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kraka]]></name></author>
		<updated>2008-09-15T20:46:52-04:00</updated>

		<published>2008-09-15T20:46:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=85175#p85175</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=85175#p85175"/>
		<title type="html"><![CDATA[relay mode change and kick error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=85175#p85175"><![CDATA[
I got the relay script all set up and i can see what is going on in the chan, but when a mode change, or a kick happens i get a error in the script and it will not relay it. the error that i get is:<br> wrong # args: should be "send_mode nick uhost hand chan mchg" while executing "send_mode $_kick1 $_kick2 $_kick3 $_kick4 $_kick5 $_kick6"<br><br>not to sure if anyone can help, but would appreciate it<br><br><div class="codebox"><p>Code: </p><pre><code>proc send_across {cmd chan nick text} {  global server channelList server1List server2List  if {[lsearch $channelList [string tolower $chan]] != -1} {    if  {[string first [lindex $server1List 0] $server] != -1} {      set fromServer "[lindex $server1List 1]"      set toBot "[lindex $server1List 2]"     } else {      set fromServer "[lindex $server2List 1]"      set toBot "[lindex $server2List 2]"     }    set botMsg [concat $cmd $chan $fromServer $nick $text]    putbot $toBot $botMsg  }}# Find out who's on the other network channelproc send_xnames {nick uhost hand arg} {  if {$arg == "" || [string first "#" $arg] != 0} {    putserv "NOTICE $nick :Usage\: /msg Eros xnames #channel"  } else {    if {[onchan $nick $arg]} {      send_across "names" $arg $nick "dummy"    } else {      putserv "NOTICE $nick :I'm sorry, you must be in channel $arg to do a remote names (xnames) command"    }  }}bind msg - xnames send_xnamesproc relay_xnames {frm_bot command arg} {  set startingChanlist "[chanlist [lindex $arg 0]]"   foreach mem $startingChanlist {    if {[isop $mem [lindex $arg 0]]} {      lappend finalChanlist \@$mem    } elseif {[isvoice $mem [lindex $arg 0]]} {      lappend finalChanlist \+$mem    } else {      lappend finalChanlist $mem    }  }  send_across "rnames" [lindex $arg 0] [lindex $arg 2] $finalChanlist}bind bot - names relay_xnamesproc recv_xnames {frm_bot command arg} {  putserv "NOTICE [lindex $arg 2] :The following people are on channel [lindex $arg 0] on net [lindex $arg 1] : [lrange $arg 3 end]"}bind bot - rnames recv_xnamesproc send_nick {nick uhost hand chan newnick} {  send_across "nick" $chan $nick $newnick}bind nick - * send_nickproc recv_nick {frm_bot command arg} {  putserv "PRIVMSG [lindex $arg 0] :\[[lindex $arg 1]\] *** [lindex $arg 2] is now known as [lrange $arg 3 end]"}bind bot - nick recv_nickproc send_mode {nick uhost hand chan mchg} {  if {[string first "b" [lindex $mchg 0]] != -1} {    send_across "ban" $chan $nick $mchg   }}bind mode - * send_mode# Multiple recv's from one sendproc recv_ban {frm_bot command arg} {  putserv "MODE [lindex $arg 0] [lrange $arg 3 end]"}bind bot - ban recv_banproc send_sign {nick uhost hand chan reason} {  send_across "sign" $chan $nick $reason}proc recv_sign {frm_bot command arg} {  putserv "PRIVMSG [lindex $arg 0] :\[[lindex $arg 1]\] *** [lindex $arg 2] Quit \([lrange $arg 3 end]\)"}bind bot - sign recv_signproc send_pubm {nick uhost hand chan text} {  set cmd "pubm"  send_across $cmd $chan $nick $text}bind pubm - * send_pubmproc recv_pubm {frm_bot command arg} {  putserv "PRIVMSG [lindex $arg 0] :\[[lindex $arg 1]\] \&lt;[lindex $arg 2]\&gt; [lrange $arg 3 end]"}bind bot - pubm recv_pubmproc send_action {nick uhost hand chan keyw text} {  send_across "act" $chan $nick $text}bind ctcp - "ACTION" send_actionproc recv_action {frm_bot command arg} {  putserv "PRIVMSG [lindex $arg 0] :\[[lindex $arg 1]\] \* [lindex $arg 2] [lrange $arg 3 end]"}bind bot - act recv_actionproc send_join {nick uhost hand chan} {  send_across "join" $chan $nick\($uhost\) "dummy"  send_across "names" $chan $nick "dummy"}bind join - * send_joinproc recv_join {frm_bot command arg} {  putserv "PRIVMSG [lindex $arg 0] :\[[lindex $arg 1]\] \*** [lindex $arg 2] has joined channel [lindex $arg 0]"}bind bot - join recv_joinproc send_part {nick uhost hand chan} {  send_across "part" $chan $nick ""}bind part - * send_partproc recv_part {frm_bot command arg} {  putserv "PRIVMSG [lindex $arg 0] :\[[lindex $arg 1]\] \*** [lindex $arg 2] has left channel [lindex $arg 0]"}bind bot - part recv_partputlog "relay 1.0.0 by: cl00bie &lt;cl00bie@sorcery.net&gt;"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6124">Kraka</a> — Mon Sep 15, 2008 8:46 pm</p><hr />
]]></content>
	</entry>
	</feed>
