mIRC Home    About    Download    Register    News    Help

Print Thread
On Notice #266186 17/10/19 04:33 PM
Joined: Aug 2006
Posts: 38
D
DragonRyder Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Aug 2006
Posts: 38
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,276
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,276
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

Re: On Notice [Re: maroon] #266725 23/01/20 12:25 PM
Joined: Aug 2006
Posts: 38
D
DragonRyder Offline OP
Ameglian cow
OP Offline
Ameglian cow
D
Joined: Aug 2006
Posts: 38
so any ideas how a NetAdmin of an IRC Network can fix his script?

Re: On Notice [Re: DragonRyder] #266729 24/01/20 03:47 AM
Joined: Apr 2015
Posts: 16
O
ovelayer Offline
Pikka bird
Offline
Pikka bird
O
Joined: Apr 2015
Posts: 16
($2 $4-5 == invited into the)
the above look's wrong to me..

Re: On Notice [Re: DragonRyder] #266730 24/01/20 05:07 PM
Joined: Jan 2004
Posts: 1,276
maroon Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2004
Posts: 1,276
I'd like clarification of what classes of people should be different than default, and what those differences should be.

The default rules for notice seem to be:

if ($nick is in $active window) then notice shows to active window
otherwise if you share at least 1 channel with that nick, the notice appears in $comchan($nick,1)
otherwise the notice appears in status window