Hi
In working on a script here, but i cant seem to find out how you can do a: "Join synced i 1,54 secs" Like u have in irssi
Can somebody help me ?
Well this is how i do mine..
raw *:*: {
if $numeric == 366 {
.set %sync $readini data.ini joinsync $2
joinsync $2
halt
}
}
then somewhere else..
alias joinsync {
echo $1 --- join to $1 was synched in $calc(($ticks - %sync) / 1000) secs!!
remini data.ini joinsync $1
}
thanks for the reply, but the output is this:
18:50:23 --- to #testtstt was synched in 13739.64 secs!!
I think thats just to many secs, dont u ?
Do excuse me, i'm having a bad day, i forgot to add this bit of code in
on ^1:join:#:{
if ($nick = $me) {
set %sync $readini data.ini joinsync #
if (%sync == $null) { writeini data.ini joinsync # $ticks }
}
}
well, I have no data.ini in my mirc folder, what does ure include ?
On me:*:Join:#:{ set $+(%,sync.,$chan) $ticks }
raw 366:*:{
echo 4 $2 * Sync in: $round($calc(($ticks - $eval($+(%,sync.,$2))) / 1000),2) seconds.
unset $+(%,sync.,$2)
}
Might be a little easier, add to remotes and thats it.
Eamonn.
Thanks everybody, both works very well
Your code won't work Coolkill, you're %sync has no information
if he adds that last bit of code in my post, it will work.
well it will work, but i mean, it's not a correct syncof the channel.
Your code won't work Coolkill, you're %sync has no information
There is no %sync, only %sync.#Channel which is set on join and unset after echoing sync time.
Eamonn.
yours * Sync in: 0 seconds.
mine --- Join to #sdagdfs was synched in 0.063 secs!!
The Sync is supposed to come after all the names have been listed
That's how bitchx and irssi work.
His: * Sync in: 0.03 seconds.
ty good to know i wasnt dreaming
Eamonn.
I get 0 secs with his :-o
* Sync in: 0.04 seconds. On Small channel
* Sync in: 7.1 seconds. Big Channel
mIRC 6.15, maybe you have a very fast connection? ;o)
I get sync's of about a second in a channel containing roughly 300 users, i only have 1mbit dsl, it's the same if i use bitchx or a similar client. :tongue: