04-27-2017, 13:03 +0200
AuthorPost
thommey  07-23-2004, 22:51   | [EGG] Check the lag of Bot<->Server Jabber
(Administrator)
Member since 03/2004
62 Posts
                                                                                                                              
01
02
03
04
05
06
07
08
09
10
11
bind pub - !lagcheck lagcheck
proc lagcheck {n u h c t} {
    set ::laganswer([set ticks [clock clicks -milliseconds]]) $c
    putserv "$ticks"
}
bind raw - 421 laganswer
proc laganswer {f k t} {
    if {[info exists ::laganswer([set ticks [lindex [split $t] 1]])]} {
        putserv "PRIVMSG $::laganswer($ticks) :Lag: [expr {[clock clicks -milliseconds] - $ticks}] ms"
    }
}

This post was edited 1 times, last on 08-12-2009, 21:06 by thommey
Advanced options for this topic:

Ignore this topic (Do not list this topic in the "unread topics" search. You are currently not ignoring this topic.)
Hide this topic (Hidden topics are not displayed in the topics list. This topic is currently not hidden.)
Go to forum

Unclassified NewsBoard 1.5.3-d | © 2003-4 by Yves Goergen