mIRC Home    About    Download    Register    News    Help

Print Thread
On Notice #266186 17/10/19 04:33 PM
Joined: Aug 2006
Posts: 37
D
DragonRyder Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Aug 2006
Posts: 37
here is my snippet:

Quote

on ^*:NOTICE:*:*: {
var %sn = $+($nick,@,$network)
if ($2 $4-5 == invited into the) { noticeprint 14(10Invited14) 12What Nick15:10 $3 12What Channel15:10 $chan  }
if (*Serv iswm $nick) {
var %t = $remove($1-,$chr(58))
if ((%t == Bot List) || (%t == Bots reserved to IRC operators)) { echo -at 14(10Notice14) 12From15: %sn 12Msg15:10 $1-  }
if ($istok(Global opsb,$nick,32)) { noticeprint 14(10Notice14) 12From15: %sn 12Msg15:03 $1-  }
elseif (CaptainJack iswm $nick) { echo -at 14(10Notice14) 12From15: %sn 12Msg15:10 $1-  }
elseif (CaptJack iswm $nick) { echo -at 14(10Notice14) 12From15: %sn 12Msg15:10 $1-  }
else { echo -at 14(10Notice14) 12From15: %sn 12Msg15:03 $1-  }
}
else { echo -t @DragonView 14(10Notice Sent14) 12From15:10 %sn 12Msg15:03 $1-  }
haltdef
}


I'm unsure whats wrong with this snippet, but I could seriously use some expert help, I am wanting to make it so the elseif statements (the ones with Capt in them) ONLY echo into my active channel, while leaving Services to go into the DragonView window, and I am unsure how to accomplish this task.

Re: On Notice [Re: DragonRyder] #266192 17/10/19 07:07 PM
Joined: Jan 2004
Posts: 1,212
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,212
You have the handling for the 4 nicks inside the condition which is true only when the nick ends with "serv", so that code can never be true