mIRC Home    About    Download    Register    News    Help

Print Thread
$nick on ON TEXT # help #266773 31/01/20 03:27 AM
Joined: Aug 2015
Posts: 46
_entropy Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Aug 2015
Posts: 46
I have an away script that notices the person that i am away if they mention my nickname in a channel.

This works for noticing the person, but it also notices me! Please test and see for yourself.


mIRC Scripts IRC Network: irc://irc.mircscripts.net/chat
Re: $nick on ON TEXT # help [Re: _entropy] #266774 31/01/20 09:25 AM
Joined: Aug 2003
Posts: 276
P
Protopia Offline
Fjord artisan
Offline
Fjord artisan
P
Joined: Aug 2003
Posts: 276
It would help if you posted the script you use.

Re: $nick on ON TEXT # help [Re: _entropy] #266775 31/01/20 09:15 PM
Joined: Aug 2015
Posts: 46
_entropy Offline OP
Ameglian cow
OP Offline
Ameglian cow
Joined: Aug 2015
Posts: 46
Code im using:

Code
on *:text:*:#:{
  if ($istok($1-,$me,32)) { 
    .notice $nick You said my name on channel message!
  }
}

Last edited by _entropy; 31/01/20 09:20 PM.

mIRC Scripts IRC Network: irc://irc.mircscripts.net/chat
Re: $nick on ON TEXT # help [Re: _entropy] #266777 01/02/20 11:09 AM
Joined: Aug 2003
Posts: 276
P
Protopia Offline
Fjord artisan
Offline
Fjord artisan
P
Joined: Aug 2003
Posts: 276
Try:
Code
on *:text:*:#:{
  if ($istok($1-,$me,32) && ($nick != $me)) { 
    .notice $nick You said my name on channel message!
  }
}