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

	<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>2007-10-04T12:00:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-10-04T11:46:23-04:00</updated>

		<published>2007-10-04T11:46:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76373#p76373</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76373#p76373"/>
		<title type="html"><![CDATA[hide CTCP reply PING (Solved)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76373#p76373"><![CDATA[
Just a word of advice, don't use lindex directly on $text, as it is a string (from an untrusted source aswell). Considder split:ing it into a list first...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Oct 04, 2007 11:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkRaptor]]></name></author>
		<updated>2007-10-04T11:38:29-04:00</updated>

		<published>2007-10-04T11:38:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76372#p76372</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76372#p76372"/>
		<title type="html"><![CDATA[hide CTCP reply PING (Solved)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76372#p76372"><![CDATA[
Thx nml375.  It's working now with bind RAW and return 1.<br><br><div class="codebox"><p>Code: </p><pre><code>bind RAW - NOTICE FreeOP_ping_replyproc FreeOP_ping_reply { from keyword text } {        set nick [lindex [split [lindex [split $from] 0] "!"] 0]        set unixtime [regexp -all -inline {[0-9]} [lindex $text 2]]        set unixtime [regsub -all { } "$unixtime" ""]        if {[nick2hand $nick] == "X"  &amp;&amp; [string match "*PING" [lindex $text 1]]} {                setuser X XTRA ping [expr [unixtime] - $unixtime]                putloglev d * "Ping Reply of [expr [unixtime] - $unixtime] seconds from X"                return 1        }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7635">DarkRaptor</a> — Thu Oct 04, 2007 11:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-10-03T13:44:36-04:00</updated>

		<published>2007-10-03T13:44:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76358#p76358</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76358#p76358"/>
		<title type="html"><![CDATA[hide CTCP reply PING (Solved)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76358#p76358"><![CDATA[
Ahh, true...<br><br>Actually, as I recall now, the only thing you could do is to turn off msg-logging in your console, which might not be preferrable; or use raw bindings to catch the notice, and prevent it from being processed further by eggdrop. Using raw bindings could, however, cause your bot to behave in unexpected ways if you are not careful.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Wed Oct 03, 2007 1:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkRaptor]]></name></author>
		<updated>2007-10-03T13:28:17-04:00</updated>

		<published>2007-10-03T13:28:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76357#p76357</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76357#p76357"/>
		<title type="html"><![CDATA[hide CTCP reply PING (Solved)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76357#p76357"><![CDATA[
Doesn't work.  I always get the reply.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7635">DarkRaptor</a> — Wed Oct 03, 2007 1:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2007-09-30T16:20:16-04:00</updated>

		<published>2007-09-30T16:20:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76325#p76325</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76325#p76325"/>
		<title type="html"><![CDATA[hide CTCP reply PING (Solved)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76325#p76325"><![CDATA[
I guess you could try to add "return 1" at the end of the code to prevent further processing..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Sep 30, 2007 4:20 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkRaptor]]></name></author>
		<updated>2007-10-04T12:00:28-04:00</updated>

		<published>2007-09-30T13:28:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76324#p76324</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76324#p76324"/>
		<title type="html"><![CDATA[hide CTCP reply PING (Solved)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76324#p76324"><![CDATA[
Hi<br><br>I make a script to check X's lag and I would like to hide the reply from partyline.<br><div class="codebox"><p>Code: </p><pre><code>[13:11] CTCP reply PING: 1191172279 from X (cservice@undernet.org) to Botnick</code></pre></div>My code<div class="codebox"><p>Code: </p><pre><code>proc ctcr { nick host hand dest keyword text } {           if {$nick == "X" &amp;&amp; [isbotnick $dest]} {                     setuser X XTRA ping [expr [unixtime] - $text]           }}</code></pre></div>I'm not a TCL Scripter expert. Any help will be appreciate.<br><br>Thanks in advance.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7635">DarkRaptor</a> — Sun Sep 30, 2007 1:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
