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

	<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-09-05T10:38:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[kain]]></name></author>
		<updated>2002-09-05T10:38:57-04:00</updated>

		<published>2002-09-05T10:38:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10521#p10521</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10521#p10521"/>
		<title type="html"><![CDATA[timers causing timeouts? / bad code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10521#p10521"><![CDATA[
i just thought it was weird the way they started to timeout after i loaded this script.<br>anyway ive taken it off all the bots where it was loaded and killed them and resatrted, they now dont timeout, and ive changed nothing but load this script. oh well i'l look elsewhere <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=981">kain</a> — Thu Sep 05, 2002 10:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-09-05T09:29:19-04:00</updated>

		<published>2002-09-05T09:29:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10518#p10518</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10518#p10518"/>
		<title type="html"><![CDATA[timers causing timeouts? / bad code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10518#p10518"><![CDATA[
The timeouts will be caused by somthing else.<br><br>Timeouts are nothing to do with timers (unless a script is badly coded). They are a sign, that the bot is not replying to a server ping in time.<br><br>This can be cuased by bad and lagged network connections, and many other machine related issues.<br><br>If you have not changed any of the setup on the bots in question, it's liely to be the machine they are running on (or it's net connection).<br><br>The script has nothing wrong with it, and, seeing as the bots in question do not have it loaded, it is certainly not th ecause of the timeouts.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Sep 05, 2002 9:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kain]]></name></author>
		<updated>2002-09-05T09:14:54-04:00</updated>

		<published>2002-09-05T09:14:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=10517#p10517</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=10517#p10517"/>
		<title type="html"><![CDATA[timers causing timeouts? / bad code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=10517#p10517"><![CDATA[
i found the original tcl in the archive, i loaded it to see if it was any good, and it seemed to work fine. i made a few changes (no timer changes) and after a few days i noticed that a lot of the bots started to timeout, even though it wasnt loaded on those bots, all i can think is that the timers are causing problems. i would appreciate someone who knows the script or this problem to take a look, thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><div class="codebox"><p>Code: </p><pre><code>bind topc - * topic:topic_changebind pub o|o whotopic pub:topicbyproc topic:topic_change {nick uhost hand chan topic} {   global topcnick topctime   set chan [string tolower $chan]   if {![info exists topcnick($chan)]} {      set topcnick($chan) ""   }   if {$nick != "*"} {      set topcnick($chan) $nick      set topctime($chan) [unixtime]   }}proc pub:topicby {nick uhost hand chan arg} {   global topcnick topctime   set chan [string tolower $chan]   putcmdlog "&lt;&lt;$nick/$chan&gt;&gt; $hand requested whotopic for $chan"   if {$topcnick($chan) != ""} {      set time [expr [unixtime] - $topctime($chan)]      set years 0      set days 0      set hours 0      set mins 0      if {$time &lt; 60} {         return "&lt; 1 min"      }      if {$time &gt;= 31536000} {         set years [expr int([expr $time/31536000])]         set time [expr $time - [expr 31536000*$years]]      }      if {$time &gt;= 86400} {         set days [expr int([expr $time/86400])]         set time [expr $time - [expr 86400*$days]]      }      if {$time &gt;= 3600} {         set hours [expr int([expr $time/3600])]         set time [expr $time - [expr 3600*$hours]]      }      if {$time &gt;= 60} {         set mins [expr int([expr $time/60])]      }      if {$years == 0} {         set output ""      } elseif {$years == 1} {         set output "1 year,"      } else {         set output "$years years,"      }      if {$days == 1} {          lappend output "1 day,"      } elseif {$days &gt; 1} {         lappend output "$days days,"      }      if {$hours == 1} {         lappend output "1 hour,"      } elseif {$hours &gt; 1} {         lappend output "$hours hours,"      }      if {$mins == 1} {         lappend output "1 minute"      } elseif {$mins &gt; 1} {         lappend output "$mins minutes"       }      set timeago [string trimright [join $output] ", "]      if {$topcnick($chan) == "*"} {         puthelp "privmsg $chan :The topic was already set when i joined this channel $timeago ago."       } else {      puthelp "privmsg $chan :The topic was set by: $topcnick($chan) $timeago ago."      }   } else {   puthelp "privmsg $chan :I didn't see the topic being changed."   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=981">kain</a> — Thu Sep 05, 2002 9:14 am</p><hr />
]]></content>
	</entry>
	</feed>
