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

	<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-06-05T13:23:04-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2008-06-05T13:23:04-04:00</updated>

		<published>2008-06-05T13:23:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83427#p83427</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83427#p83427"/>
		<title type="html"><![CDATA[add Bind time to bping.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83427#p83427"><![CDATA[
Simply put, ping_send is written to be used with dcc bindings, not time...<br>If you wish to use time bindings, you'll have to write a separate proc for it...<br><br>A more advanced explanation; dcc bindings call the command with the added arguments handle, idx, and text. Hence ping_send is written to expect three arguments, where the second one should be the idx of an active dcc connection, and the third one the name of the bot to be pinged. Time bindings however, calls the command with the added arguments minute, hour, day, month, year. This means that you try to call ping_send with two arguments too many, and the second argument obviously isn't an idx, but the current hour, and the third isn't a name of a bot, but the current day.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Jun 05, 2008 1:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-06-05T13:13:42-04:00</updated>

		<published>2008-06-05T13:13:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83426#p83426</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83426#p83426"/>
		<title type="html"><![CDATA[add Bind time to bping.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83426#p83426"><![CDATA[
and how fix this?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Thu Jun 05, 2008 1:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2008-06-05T13:11:47-04:00</updated>

		<published>2008-06-05T13:11:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83425#p83425</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83425#p83425"/>
		<title type="html"><![CDATA[add Bind time to bping.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83425#p83425"><![CDATA[
<blockquote class="uncited"><div>some1 ?</div></blockquote>the junkyard perhaps?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Thu Jun 05, 2008 1:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-06-05T12:42:05-04:00</updated>

		<published>2008-06-05T12:42:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83424#p83424</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83424#p83424"/>
		<title type="html"><![CDATA[add Bind time to bping.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83424#p83424"><![CDATA[
some1 ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Thu Jun 05, 2008 12:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nor7on]]></name></author>
		<updated>2008-06-04T05:40:56-04:00</updated>

		<published>2008-06-04T05:40:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=83415#p83415</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=83415#p83415"/>
		<title type="html"><![CDATA[add Bind time to bping.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=83415#p83415"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc ping_send {hand idx text} {  global pingidx tcl_version  set pingidx $idx  set bots [string tolower [bots]]  set pingbot [string tolower [lindex $text 0]]  if {$tcl_version &gt;= 8.3} {    set time [clock clicks -milliseconds]  } else {    set time [unixtime]  }  if {$pingbot != ""} {    if {[lsearch $bots $pingbot] != "-1"} {      putbot $pingbot "BOTPING $time"      putdcc $idx "Pinging $pingbot."    } else {      putdcc $idx "That bot isn't on the botnet."      return 0    }  } else {    putallbots "BOTPING $time"    putdcc $idx "Pinging the entire botnet."  }  return 1}proc ping_echo {bot command text} {  global replied_ping  if {$command == "BOTPING" &amp;&amp; ![info exists replied_ping]} {    set replied_ping yes    utimer 20 {unset replied_ping}    putbot $bot "BOTPING_RPLY $text"    putlog "Pinged by $bot"  }}proc ping_reply {bot command text} {  global pingidx tcl_version  if {$command == "BOTPING_RPLY"} {    if {$tcl_version &gt;= 8.3} {      set replytime [expr [expr [clock clicks -milliseconds] - [split $text]] / 1000.0]    } else {      set replytime [expr [unixtime] - [split $text]]    }    putdcc $pingidx "Ping reply from $bot\: $replytime secs"  }}bind time - "?0 * * * *" ping_sendbind time - "?5 * * * *" ping_sendbind dcc m bping ping_sendbind bot - BOTPING ping_echobind bot - BOTPING_RPLY ping_reply</code></pre></div>hi i add two bind times, but i get this error.<br><div class="codebox"><p>Code: </p><pre><code>[09:35] Tcl error [ping_send]: wrong # args: should be "ping_send hand idx text" [09:35] #Nor7on# set errorInfoCurrently: wrong # args: should be "ping_send hand idx text"Currently:     while executingCurrently: "ping_send $_time1 $_time2 $_time3 $_time4 $_time5"</code></pre></div><br>so, whats wrong?  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"> <br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8762">Nor7on</a> — Wed Jun 04, 2008 5:40 am</p><hr />
]]></content>
	</entry>
	</feed>
