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

	<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>2004-09-06T00:51:43-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-09-06T00:51:43-04:00</updated>

		<published>2004-09-06T00:51:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40614#p40614</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40614#p40614"/>
		<title type="html"><![CDATA[problem bind raw in 2 scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40614#p40614"><![CDATA[
This happens because when you whois the user in your second script, on bind raw 307, a whois display is binded to 4-5 raws, if you know what I mean. Each line is a whois is binded on a seperate raw number.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> <br><br>What I think here is raw 317 is binded maybe on your IRCd in the whois reply, hence when you try to whois a user raw 307 will fire, as well as raw 317. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><br>What you can do here is after the foreach loop has completed you can unbind any one of the raw binds, or maybe after a specific interval of time you can try unbinding the binded raw which fires on a public command both of which you use the more often.<br><br>Or you can directly make both the public commands fire to a new proc, which has a switch, set to 1, or 0. This can be a global array variable, then on the raw you can check if switch is 1 or 0 so the raw can fire, and in the end you can set the switch to 0 to disable it or the way you like.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Sep 06, 2004 12:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Careto]]></name></author>
		<updated>2004-09-05T09:21:44-04:00</updated>

		<published>2004-09-05T09:21:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=40598#p40598</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=40598#p40598"/>
		<title type="html"><![CDATA[problem bind raw in 2 scripts]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=40598#p40598"><![CDATA[
I have problem with 2 script loaders.<br><br>1º script:<div class="codebox"><p>Code: </p><pre><code>bind pub o|o !signon whoisbind raw - 317 sigproc whois {nick uhost handle chan arg} {global caset ca $chanforeach user [chanlist $chan] {putserv "WHOIS $user $user" }}proc sig {from key arg} { global ca set nick [lindex [split $arg] 1] set signon1 [lindex [split $arg] 3] set formatdia "%e" set formathora "%H" set formatminutos "%M" set formatsegundos "%S" set formatsemanas "%W" set actual [clock seconds] set restauptime [expr $actual - $signon1] set pororden [lsort -decreasing -dictionary $restauptime] set resultadouptimedias [clock format $pororden -format $formatdia -gmt YES] set resultadouptimehoras [clock format $pororden -format $formathora -gmt YES] set resultadouptimeminutos [clock format $pororden -format $formatminutos -gmt YES] set resultadouptimesegundos [clock format $pororden -format $formatsegundos -gmt YES] set resultadosemanas [clock format $pororden -format $formatsemanas -gmt YES] set resultadouptimedias1 [expr $resultadouptimedias - 1] if {![string equal $nick $::botnick]} { putserv "PRIVMSG $ca :$nick: $resultadouptimedias1 dias $resultadouptimehoras horas $resultadouptimeminutos minutos $resultadouptimesegundos segundos" }}</code></pre></div>2º script:<div class="codebox"><p>Code: </p><pre><code> bind pub - !nickregistrado pandabind raw - 307 atestproc panda {nick uhost handle chan arg} {global chaset cha $chanforeach user2 [chanlist $chan] {putserv "WHOIS $user2" }}proc atest {from key arg} { global cha set nick2 [lindex [split $arg] 1] set nickreg [lrange [split $arg] 2 end] if {![string equal $nick2 $::botnick]} {  putserv "PRIVMSG $cha :$nick2 $nickreg" }}</code></pre></div>are 2 script different, when I execute one of them in a channel, bot executes the 2, I have proven with unbind in each script to annul raw opposite, but does not work anybody can help me?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4642">Careto</a> — Sun Sep 05, 2004 9:21 am</p><hr />
]]></content>
	</entry>
	</feed>
