mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2008
Posts: 167
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
I currently have this:
Code:
on *:TEXT:*:#: {
  if ($nick isop $chan) && ($me == no-nick) && ($me isop $chan) {
    if ($1 == +v) { /mode $chan +v $2- | msg $chan $2- should now have voice }
  }
}


But, if there is a non-existant user, e.g. fffff then it says:
Quote:
<@no-nick> fffff should now have voice.


Is there a way to stop it?
I think it is something like:
Code:
on *:TEXT:*:#: {
 if <the code that will only let the request through when a user is on channel> {
  if ($nick isop $chan) && ($me == no-nick) && ($me isop $chan) {
    if ($1 == +v) { /mode $chan +v $2- | msg $chan $2- should now have voice }
  }
 }
}



Last edited by seanturner70; 09/11/08 12:10 PM.
Joined: Oct 2008
Posts: 167
S
Vogon poet
OP Offline
Vogon poet
S
Joined: Oct 2008
Posts: 167
oh its fine.. I got it smile
Code:
on *:TEXT:*:#: {
  if ($nick isop $chan) && ($me == no-nick) && ($me isop $chan) {
    if ($$2 ison $chan) && ($1 == +v) { /mode $chan +v $2- | msg $chan $2- should now have voice }
    elseif ($$2 !ison $chan) && ($1 == +v) { msg $chan I cannot see $2- on the channel.
    }
  }



Last edited by seanturner70; 09/11/08 12:09 PM.

Link Copied to Clipboard