mIRC Home    About    Download    Register    News    Help

Print Thread
#22582 05/05/03 09:07 PM
Joined: Jan 2003
Posts: 39
Q
quiglag Offline OP
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Jan 2003
Posts: 39
I am working on a notice script, but I want it to only /notice me in the channel I am viewing at the time of the on TEXT. Right now it /notices me in all the channels I have running. Can anyone help me?
Code:
 on 1:TEXT:*quig*:#: {
  if ($chan == $active) return
  /notice $me $nick $+ ( $+ $chan $+ ) $1-
  beep 5 100
}
 

#22583 05/05/03 09:29 PM
Joined: Jan 2003
Posts: 20
K
Ameglian cow
Offline
Ameglian cow
K
Joined: Jan 2003
Posts: 20
is there any reason for using the notice command why not just use echo -a $nick $+ ( $+ $chan $+ ) $1-. it will do the same job and only send to the currently active window.
Code:

on 1:TEXT:*quig*:#: {
  if ($chan == $active) return
  /echo -a $nick $+ ( $+ $chan $+ ) $1-
  beep 5 100
}


#22584 05/05/03 09:33 PM
Joined: Jan 2003
Posts: 96
J
Babel fish
Offline
Babel fish
J
Joined: Jan 2003
Posts: 96
Code:
[REMOTE]
on 1:TEXT:*quig*:#: {
  if ($chr(35) isin $active) { return }
  ; this is if # is in the active window name, then it will stop.
  else echo -a $nick $+ ( $+ $chan $+ ) $1- | beep 5 100 
  ; or notice $me $nick $+ ( $+ $chan $+ ) $1- | beep 5 100 
}




Not tested, but should work... smile

#22585 05/05/03 09:43 PM
Joined: Jan 2003
Posts: 39
Q
quiglag Offline OP
Ameglian cow
OP Offline
Ameglian cow
Q
Joined: Jan 2003
Posts: 39
thanks guys


Link Copied to Clipboard