mIRC Home    About    Download    Register    News    Help

Print Thread
#10035 07/02/03 03:30 AM
Joined: Dec 2002
Posts: 332
C
Cheech Offline OP
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
the ! prefix doesnt seem to work on this event ? i was guessing that is because the $nick that has left is unavailable for comparison i looked thru the help file for another way to exclude myself from the event but came up empty i tried writing it in like so
Code:
 
on !1:unotify: {
 if ( $nick == $me ) { goto end } 
 else do this ......
}
 

but still thier is no way to make the comparison any ideas would be greatly appreciated smile

ok i was able to get this to work effectively i added a on nick event
Code:
  
on 1:nick: {
  if ( $nick == $me ) && ( $newnick == nick1 ) { set %abc on }
}
on !1:unotify: {
  if ( %abc == on ) { goto end }
  elseif ( $nick == nick1 ) { /nick nick2 | set %abc off }
  :end
}


if there is a quick an affective prefix to do this or an easier way i am still intersted thx again smile

Last edited by Cheech; 07/02/03 03:55 AM.
#10036 07/02/03 03:50 AM
Joined: Dec 2002
Posts: 1,527
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,527
ok now thats just a horrid code try something like this

on 1:NOTIFY: {
if ( $nick != $me ) { .commands }
}

ok with it coded like that if the nick isnt ur own it will then perform ur commands


D3m0nnet.com
#10037 07/02/03 03:58 AM
Joined: Dec 2002
Posts: 332
C
Cheech Offline OP
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
no actually i dont want an on notify event i want an on unotify event and the ! prefix wont stop it from triggering if the unotified nick was previously me so i tryed adding in the if statement

also if you wanted to eclude yourself in that event you posted all you would need to do is
Code:
 
on !1:notify: { commands } 
 


thats what the !prefix is for

Last edited by Cheech; 07/02/03 04:00 AM.
#10038 07/02/03 04:03 AM
Joined: Dec 2002
Posts: 3,138
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Tested with changing my nickname (and put Collective in notify list):
The code: on *:unotify:{ dostuff }
[04:00:31] * Collective has left IRC
-
[04:00:31] * Your nick is now TheCollective
-
DOSTUFF Unknown command

The code: on !*:unotify:{ dostuff }
[03:59:48] * Collective has left IRC
-
[03:59:48] * Your nick is now TheCollective

Conclusion
It works fine for me...

#10039 07/02/03 04:08 AM
Joined: Dec 2002
Posts: 332
C
Cheech Offline OP
Fjord artisan
OP Offline
Fjord artisan
C
Joined: Dec 2002
Posts: 332
ok i will try that i see you used
on !*:unotify
where i had used
on !1:unotify
perhaps the * prefix is the key
thx


Link Copied to Clipboard