mIRC Homepage
Posted By: rdiij Join synced in "" secs - 12/07/04 02:54 PM
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 ?
Posted By: Marantz Re: Join synced in "" secs - 12/07/04 04:35 PM
Well this is how i do mine..

Code:
raw *:*: {
  if $numeric == 366 {
    .set %sync $readini data.ini joinsync $2
    joinsync $2
    halt
  }
} 


then somewhere else..
Code:
alias  joinsync  {
  echo $1 --- join  to $1 was synched in  $calc(($ticks - %sync) / 1000) secs!! 
  remini data.ini joinsync $1
}  
Posted By: rdiij Re: Join synced in "" secs - 12/07/04 04:54 PM
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 ? smile
Posted By: Marantz Re: Join synced in "" secs - 12/07/04 05:05 PM
Do excuse me, i'm having a bad day, i forgot to add this bit of code in blush
Code:
on ^1:join:#:{
  if ($nick = $me) {
    set %sync $readini data.ini joinsync #
    if (%sync == $null) { writeini data.ini joinsync # $ticks }
  }
}  
Posted By: rdiij Re: Join synced in "" secs - 12/07/04 05:08 PM
well, I have no data.ini in my mirc folder, what does ure include ?
Posted By: Coolkill Re: Join synced in "" secs - 12/07/04 05:09 PM
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.
Posted By: rdiij Re: Join synced in "" secs - 12/07/04 05:14 PM
Thanks everybody, both works very well
Posted By: Marantz Re: Join synced in "" secs - 12/07/04 05:14 PM
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.
Posted By: Coolkill Re: Join synced in "" secs - 12/07/04 05:16 PM
Quote:

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.
Posted By: Marantz Re: Join synced in "" secs - 12/07/04 05:18 PM
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.
Posted By: tidy_trax Re: Join synced in "" secs - 12/07/04 05:20 PM
His: * Sync in: 0.03 seconds.
Posted By: Coolkill Re: Join synced in "" secs - 12/07/04 05:23 PM
ty good to know i wasnt dreaming wink

Eamonn.
Posted By: rdiij Re: Join synced in "" secs - 12/07/04 05:23 PM
I get 0 secs with his :-o
Posted By: Adrenalin Re: Join synced in "" secs - 12/07/04 06:53 PM
* 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)
Posted By: Marantz Re: Join synced in "" secs - 12/07/04 06:56 PM
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:
© mIRC Discussion Forums