mIRC Home    About    Download    Register    News    Help

Print Thread
M
morphy
morphy
M
why does the $address work "fifty-fifty" by using in "on Notify" ? I mean: sometimes there appears that what should appear - the host of the notified user... sometimes - the irc server that I am using... and sometimes just nothing
i thing it's a bug, because i didn't find any logic.

Code:
on ^1:NOTIFY:{
  echo -ati6 [ $timestamp ] $- =( $nick $address )= $- is online
  halt
}

does anybody have an idea?
thanks

Joined: Mar 2004
Posts: 175
R
Vogon poet
Offline
Vogon poet
R
Joined: Mar 2004
Posts: 175
Try this:
Code:
on ^1:NOTIFY:{
  echo -ati6 [ $timestamp ] $- =( $nick $notify($nick).addr )= $- is online
  halt
}

I
Iori
Iori
I
$address in the notify event depends on the server sending the address, this only happens on some IRCDs using the WATCH system.
If the network doesn't have WATCH implemeted then ISON is used and the address is not a part of ISON reply, so will only be available if the notify user is also on a common channel (and IAL is on (by default it is)). The same applies to $notify($nick).addr.
You could use something like this, but if you have a lot of notify entries it could easily flood yourself off (and again and again ....)
Code:
on ^*:notify:if !$notify($nick).addr { userhost $nick | inc -u10 %uhost. $+ $nick | halt }
raw 302:*:{
  var %a = $gettok($2,1,61)
  if %uhost. [ $+ [ %a ] ] {
    echo -astic notify * %a ( $+ $remove($gettok($2,2,61),+,-) $+ ) is on IRC
    halt
  }
}


Link Copied to Clipboard