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

	<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>2006-09-08T08:59:19-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-09-08T08:59:19-04:00</updated>

		<published>2006-09-08T08:59:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66201#p66201</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66201#p66201"/>
		<title type="html"><![CDATA[problem with ping scripts with mirc?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66201#p66201"><![CDATA[
One also has to be very careful that an exploit isn't opened.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Fri Sep 08, 2006 8:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-09-08T03:31:24-04:00</updated>

		<published>2006-09-08T03:31:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66195#p66195</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66195#p66195"/>
		<title type="html"><![CDATA[problem with ping scripts with mirc?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66195#p66195"><![CDATA[
I had thought of the case, and tried it both as upper and lower (eg, Nick was Somenick, I tried both "Somenick" and "somenick") I also turned on raw logging and saw no reply..  And actually, just double checked, I have another bot on the channel called UnoGame2112, and if I run the ping script on it, I do get the ping reply in the log (but not the output in channel cos of the case-sensitive array, like you mentioned.)<br><br>&lt;rosc&gt; .ping unogame2112<br><br>[UnoGame2112(dcc)] [03:29] CTCP PING: -1940600381 from TheEntity (~<a href="mailto:TheEntity@TheEntity.users.undernet.org">TheEntity@TheEntity.users.undernet.org</a>)<br><br>[theentity(dcc)] [03:29] CTCP reply PING: -1940600381 from UnoGame2112 (<a href="mailto:rosc2112@UnoGameBot.users.undernet.org">rosc2112@UnoGameBot.users.undernet.org</a>) to TheEntity<br><br><br>I don't think I'll be able to figure out the problem without setting up a windows box of my own :/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Fri Sep 08, 2006 3:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-09-08T02:24:44-04:00</updated>

		<published>2006-09-08T02:24:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66193#p66193</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66193#p66193"/>
		<title type="html"><![CDATA[problem with ping scripts with mirc?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66193#p66193"><![CDATA[
neither mIRC nor "windoze" have anything to do with your problem, your script is buggy<br><br>key values of Tcl's associative arrays are case-sensitive, therefore you won't get a response from nicks you typed not in their original case; fix the script to store the nick keys either in all lower- or uppercase<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Fri Sep 08, 2006 2:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[rosc2112]]></name></author>
		<updated>2006-09-07T16:09:35-04:00</updated>

		<published>2006-09-07T16:09:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=66179#p66179</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=66179#p66179"/>
		<title type="html"><![CDATA[problem with ping scripts with mirc?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=66179#p66179"><![CDATA[
Has anyone else come across a problem using a ping script to check an<br> mirc client? I've been using sir_fz's ping script, and have tried others that <br>use the same basic binds, and I've even looked at the traffic through <br>ethereal and my irc client. I don't see a reason why the ping script does <br>not obtain a reply from (some) mirc clients.  My irc client (bitchx) can ping <br>these people and gets a reply, but the ping script does not?<br><br>This is basically sir_fz's script with some minor modifications I made:<br>(The script works, except for these few mirc clients)<br><div class="codebox"><p>Code: </p><pre><code>#########################################################################################################################################################bind pub - .ping pub:pingbind ctcr - PING ctcr:pingproc pub:ping {nick uhost hand chan arg} {global pingreq pingp pingchans        if {[lsearch -exact $pingchans $chan] == -1} {                puthelp "PRIVMSG $nick :ping disabled on $chan"                return        }        set arg [string trim $arg]        if {![info exists pingp($chan)]} {                 set pingp($chan) 0         }        utimer 2 [list incr pingp($chan) -1]        if {[incr pingp($chan)] &lt; 3} {                if {[set targ [lindex [split $arg] 0]] == ""} {                        putserv "PRIVMSG $chan :Use: .ping &lt;nick&gt; or .ping me"                        return                }                if {([string equal -nocase "me" $targ] == 1)} {                        putserv "PRIVMSG $nick :\001PING [clock clicks -milliseconds]\001"                        set pingreq($nick) "$chan"                        return                }                if {[onchan $targ $chan]} {                        putserv "PRIVMSG $targ :\001PING [clock clicks -milliseconds]\001"                        set pingreq($targ) "$chan"                } else {                        puthelp "PRIVMSG $chan :$targ is not in $chan."                }        }}proc ctcr:ping {nick uhost hand dest keyword arg} {        global pingreq        if {![info exists pingreq([set nnick $nick])]} {return}        if {[string is integer [set reply [lindex [split $arg] 0]]]} {                putserv "PRIVMSG $pingreq($nnick) :\[\002$nick\002 PING reply\]: [expr {abs([clock clicks -milliseconds] - $reply) / 1000.0}] seconds."        }        unset pingreq($nnick)}</code></pre></div>This is the responses I captured with ethereal and my irc client:<br><div class="codebox"><p>Code: </p><pre><code>Non-working response (doesnt work with script, but works with irc client)[binary packet junk deleted]:user!~username@User1.users.undernet.org NOTICE rosc :PING 1157607381 537606Working response from different mirc user:[binary junk]:user2!~Foo@user2.users.undernet.org NOTICE rosc :PING 1157610199 651325</code></pre></div>The only difference I see is in the binary junk which I assume is just the packet's header, which should not matter? Also, yes the mirc clients are receiving the ping request, I asked and they showed me the request that was sent.<br><br>Anyone have a clue for me? =)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7395">rosc2112</a> — Thu Sep 07, 2006 4:09 pm</p><hr />
]]></content>
	</entry>
	</feed>
