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

	<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-08-11T18:12:44-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-08-11T18:12:44-04:00</updated>

		<published>2002-08-11T18:12:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9626#p9626</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9626#p9626"/>
		<title type="html"><![CDATA[Finally traced the timer error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9626#p9626"><![CDATA[
So your script, rather than only dislpay on an error. It just displays information as a timer is being set, so that should an error occur, it can be looked into easier.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Aug 11, 2002 6:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-09T16:41:49-04:00</updated>

		<published>2002-08-09T16:41:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9569#p9569</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9569#p9569"/>
		<title type="html"><![CDATA[Finally traced the timer error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9569#p9569"><![CDATA[
Thank you so much, ppslim, it worked.<br>oh actually i have a small script, which displays the procedure's stuff like when i type timer commands..<br>Timer timer19536 due in 3 min., proc: cl_timer<br>since i had seen that, when that userw as join the chn, and saw the timer error in a partyline, so i asked that user if he can part n rejoin the chn, so he did that, and then when i displayed that timer command, it showed there..<br>u want me to email you?<br><br>thanks<br>regards<br>AW<p>Statistics: Posted by Guest — Fri Aug 09, 2002 4:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-08-09T05:01:13-04:00</updated>

		<published>2002-08-09T05:01:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9550#p9550</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9550#p9550"/>
		<title type="html"><![CDATA[Finally traced the timer error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9550#p9550"><![CDATA[
This is the fault of the script calling the timer.<br><br>If you notice in the debug lines, one of the arguments to the script is [chatbug], and the script is complaining that [chatbug] does not exist.<br><br>This is due to the way the timer has been called.<br><br>Changing the utimer line to the following should work.<br><div class="codebox"><p>Code: </p><pre><code>utimer 15 [list timeout $sock $host $type $args]</code></pre></div>Where did you get the debug code from, or is it a modified version of mine? I would appreciate a copy (with credits) for an upcoming eggdrop Tcl toolkit.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri Aug 09, 2002 5:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-08-08T21:03:05-04:00</updated>

		<published>2002-08-08T21:03:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9546#p9546</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9546#p9546"/>
		<title type="html"><![CDATA[Finally traced the timer error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9546#p9546"><![CDATA[
Hi, i was trying to trace the timer error for a long time, finally i got it, proc name, i will appreciate if someone will help me to fix this timer error<br>its an antisocks tcl.<br>&lt;Ta&gt; <strong class="text-strong">Timer timer338 </strong>due in 13 sek., <strong class="text-strong">proc: timeout </strong>sock12  216.123.73.107 join #testing  [ChatBug]<br><br>&lt;Ta&gt; [02:44] Tcl error in script for '<strong class="text-strong">timer338</strong>':<br>&lt;Ta&gt; [02:44] invalid command name "ChatBug"<br><br><br>codes:<br>if {[catch {puts $sock $data}]} {<br>    if {$type == "dcc"} { putdcc [lindex $args 0] "\002NO SOCKS\002: not a socks host $host." }<br>    if {$type == "msg"} { putserv "NOTICE [lindex $args 0] :\002NO SOCKS\002: not a socks host $host."}<br>    if {$type == "pub"} { putserv "PRIVMSG [lindex $args 0] :\002NO SOCKS\002: not a socks host $host." }<br>    if {[info exists timeout($sock)]} { unset timeout($sock) }<br>    catch {close $sock}<br>  }<br>}<br><br># Scanner.<br>proc wingate {host type args} {<br>global timeout<br>  set args [join $args " "]<br># Not a valid host.<br>  if {[catch {set sock [socket -async $host 1080]}]} {<br>    if {$type == "dcc"} { putdcc [lindex $args 0] "\002Not Valid\002: Unable to connect to $host." }<br>    if {$type == "msg"} { putserv "NOTICE [lindex $args 0] :\002Not Valid\002: Unable to connect to $host." }<br>    if {$type == "pub"} { putserv "PRIVMSG [lindex $args 0] :\002Not Valid\002: Unable to connect to $host." }<br>    return 0<br>  }<br>  fileevent $sock writable [list gotconnect $sock $host $type $args];# wait for connect.<br>  fileevent $sock readable [list gotread $sock $host $type $args];#wait for responce.<br># Timeout after 15seconds<br>  set timeout($sock) ""<br>  utimer 15 "timeout $sock $host $type $args"<br>}<br><br># Connection timed out.<br>proc timeout {sock host type args} {<br>global timeout<br>  if {[info exists timeout($sock)]} {<br>    unset timeout($sock)<br>    fileevent $sock writable {}   ;# remove previous handler<br>    fileevent $sock readable {}    ;# remove previous handler<br>    close $sock    ;# close the socket<br>    if {$type == "dcc"} { putdcc [lindex $args 0] "\002TIME OUT\002: Timeout on connection to $host." }<br>    if {$type == "msg"} { putserv "NOTICE [lindex $args 0] :\002TIME OUT\002: Timeout on connection to $host." }<br>    if {$type == "pub"} { putserv "PRIVMSG [lindex $args 0] :\002TIME OUT\002: Timeout on connect to $host." }<br>  }<br>  return 0<br>}<br><br>i will really appreciate for your kind help<br>thank you<br>AW<p>Statistics: Posted by Guest — Thu Aug 08, 2002 9:03 pm</p><hr />
]]></content>
	</entry>
	</feed>
