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

	<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>2015-06-03T22:36:18-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2015-06-03T22:36:18-04:00</updated>

		<published>2015-06-03T22:36:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104206#p104206</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104206#p104206"/>
		<title type="html"><![CDATA[fb.lagcheck.tcl error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104206#p104206"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># Set here the user flag for using the commands.set lagflag "m"# Set here the channels that the bot will notify that the lag is too high. Set to "" to disable.set lagchans "#lapaz #cremacamba"# This is the lag limit, if the lag exceeds this time (in seconds), the bot will jump servers.set antilagtime 5# This is the script timer, this is the number of minutes the bot will check the lag.set lagtimer 20# Set this to 1 if you want the bot to notify the partyline when checking the lag. Set to 0 to disable.set lagnotify 1### Do not edit below this line! ###### ---------------------------- ###set antilagv 1.03bind raw - 391 raw:check:lagbind pub ${lagflag} !lagcheck pub:antilagbind dcc ${lagflag} lagcheck dcc:antilagif {![info exists antilagloaded]} {  timer $lagtimer proc:antilag  set antilagloaded 1}proc proc:antilag {} {  global lagtimer lagnotify  set ::lag "[clock clicks]"  set ::type 0  if {$lagnotify == 1} { putlog "\002-Anti-Lag-\002 Now checking server lag." }  putquick "TIME"  timer $lagtimer proc:antilag}proc pub:antilag {nick uhost hand chan text} {  global lagchans  foreach msgchan $lagchans {    if {$chan == $msgchan} {      set ::lag "[clock clicks]"      set ::type 1      set ::chan $msgchan      putquick "PRIVMSG $::chan :\002-Anti-Lag-\002 Now checking server lag."      putquick "TIME"    }  }}proc dcc:antilag {hand idx text} {  set ::lag "[clock clicks]"  putlog "\002-Anti-Lag-\002 Now checking server lag."  set ::type 2  putquick "TIME"}proc raw:check:lag {from key text} {  global antilagtime lagchans lagnotify  set lag [expr ((([clock clicks] - $::lag)/2)/60)/1000.]  if {$lagnotify == 1} { putlog "\002-Anti-Lag-\002 Current lag is \002$lag\002 seconds." }  if {$::type == 1} { putquick "PRIVMSG $::chan :\002-Anti-Lag-\002 Current lag is \002$lag\002 seconds." }  if {($lagnotify == 0) &amp;&amp; ($::type == 2)} { putlog "\002-Anti-Lag-\002 Current lag is \002$lag\002 seconds." }  if {$lag &gt; $antilagtime} {    if {($lagchans != "") &amp;&amp; ($::type != 2)} {      foreach msgchan $lagchans {        putquick "PRIVMSG $msgchan :\002Attention\002: My lag has exceeded the limit of $antilagtime seconds (currently at $lag seconds). I am now jumping servers."       }     }    putlog "\002-Anti-Lag-\002 Lag exceeded $antilagtime seconds. Trying another server..."    jump   }  unset -nocomplain ::lag  unset -nocomplain ::chan  if {[info exists ::type]} { unset -nocomplain ::type } }putlog "\002-Anti-Lag-\002 $antilagv by FrostByte: Loaded"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Wed Jun 03, 2015 10:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2015-06-03T22:30:44-04:00</updated>

		<published>2015-06-03T22:30:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104205#p104205</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104205#p104205"/>
		<title type="html"><![CDATA[fb.lagcheck.tcl error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104205#p104205"><![CDATA[
yes bros thanks..<br><br>unset -nocomplain ::lag<br>unset -nocomplain ::chan<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Wed Jun 03, 2015 10:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-05-25T21:11:46-04:00</updated>

		<published>2015-05-25T21:11:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104157#p104157</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104157#p104157"/>
		<title type="html"><![CDATA[fb.lagcheck.tcl error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104157#p104157"><![CDATA[
Try changing the line...<div class="codebox"><p>Code: </p><pre><code>unset ::chan</code></pre></div>...to...<div class="codebox"><p>Code: </p><pre><code>unset -nocomplain ::chan</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Mon May 25, 2015 9:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2015-05-25T20:16:13-04:00</updated>

		<published>2015-05-25T20:16:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104156#p104156</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104156#p104156"/>
		<title type="html"><![CDATA[fb.lagcheck.tcl error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104156#p104156"><![CDATA[
this tcl generates me the following error in partyline:<blockquote class="uncited"><div>[20:03] &lt;(Deborilla&gt; [01:04:00] -Anti-Lag- Comprobando si hay un retraso en mi servidor.<br>[20:04] &lt;(Deborilla&gt; [01:04:00] -Anti-Lag- El retraso corriente actual es 1.552 segundos.<br>[20:04] &lt;(Deborilla&gt; [01:04:00] Tcl error [raw:check:lag]: can't unset "::chan": no such variable</div></blockquote><div class="codebox"><p>Code: </p><pre><code># Set here the user flag for using the commands.set lagflag "m"# Set here the channels that the bot will notify that the lag is too high. Set to "" to disable.set lagchans "#lapaz #cremacamba"# This is the lag limit, if the lag exceeds this time (in seconds), the bot will jump servers.set antilagtime 5# This is the script timer, this is the number of minutes the bot will check the lag.set lagtimer 20# Set this to 1 if you want the bot to notify the partyline when checking the lag. Set to 0 to disable.set lagnotify 1### Do not edit below this line! ###### ---------------------------- ###set antilagv 1.03bind raw - 391 raw:check:lagbind pub ${lagflag} !lagcheck pub:antilagbind dcc ${lagflag} lagcheck dcc:antilagif {![info exists antilagloaded]} {  timer $lagtimer proc:antilag  set antilagloaded 1}proc proc:antilag {} {  global lagtimer lagnotify  set ::lag "[clock clicks]"  set ::type 0  if {$lagnotify == 1} { putlog "\002-Anti-Lag-\002 Now checking server lag." }  putquick "TIME"  timer $lagtimer proc:antilag}proc pub:antilag {nick uhost hand chan text} {  global lagchans  foreach msgchan $lagchans {    if {$chan == $msgchan} {      set ::lag "[clock clicks]"      set ::type 1      set ::chan $msgchan      putquick "PRIVMSG $::chan :\002-Anti-Lag-\002 Now checking server lag."      putquick "TIME"    }  }}proc dcc:antilag {hand idx text} {  set ::lag "[clock clicks]"  putlog "\002-Anti-Lag-\002 Now checking server lag."  set ::type 2  putquick "TIME"}proc raw:check:lag {from key text} {  global antilagtime lagchans lagnotify  set lag [expr ((([clock clicks] - $::lag)/2)/60)/1000.]  if {$lagnotify == 1} { putlog "\002-Anti-Lag-\002 Current lag is \002$lag\002 seconds." }  if {$::type == 1} { putquick "PRIVMSG $::chan :\002-Anti-Lag-\002 Current lag is \002$lag\002 seconds." }  if {($lagnotify == 0) &amp;&amp; ($::type == 2)} { putlog "\002-Anti-Lag-\002 Current lag is \002$lag\002 seconds." }  if {$lag &gt; $antilagtime} {    if {($lagchans != "") &amp;&amp; ($::type != 2)} {      foreach msgchan $lagchans {        putquick "PRIVMSG $msgchan :\002Attention\002: My lag has exceeded the limit of $antilagtime seconds (currently at $lag seconds). I am now jumping servers."      }    }    putlog "\002-Anti-Lag-\002 Lag exceeded $antilagtime seconds. Trying another server..."    jump  }  unset ::lag  unset ::chan  if {[info exists ::type]} { unset ::type }}putlog "\002-Anti-Lag-\002 $antilagv by FrostByte: Loaded"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Mon May 25, 2015 8:16 pm</p><hr />
]]></content>
	</entry>
	</feed>
