mIRC Home    About    Download    Register    News    Help

Print Thread
#234830 12/11/11 08:41 AM
Joined: Nov 2011
Posts: 5
S
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Nov 2011
Posts: 5
I'd like to ignore when a specific user gets op status, because he disconnects/reconnects with rather high frequency. I've managed to remove the part/join messages, but no matter what I do I can't remove the message for the ChanServ automatically opping him.

Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
Code:
on ^*:OP:#thechan:if ($nick == ChanServ && $opnick == theguysnick) halt


Add the above to remotes (Alt+R). Change #thechan and theguysnick


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Nov 2011
Posts: 5
S
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
S
Joined: Nov 2011
Posts: 5
Thanks, it works. I actually had that and it didn't work before, but after fiddling with it it looks like I just had the syntax wrong, didn't have proper spacing or something.

Joined: Feb 2003
Posts: 3,432
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Feb 2003
Posts: 3,432
isnt haltdef bether to use then halt?


if ($me != tired) { return } | else { echo -a Get a pot of coffee now $+($me,.) }
Joined: Oct 2003
Posts: 3,918
A
Hoopy frood
Offline
Hoopy frood
A
Joined: Oct 2003
Posts: 3,918
No they're the same. haltdef halts default text without halting the rest of the event from processing. halt does both. In this case, there's no other event processing needed, so it makes no difference.


- argv[0] on EFnet #mIRC
- "Life is a pointer to an integer without a cast"
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
That said, if you want to keep all of this kind of halting to be similar in your scripts, you can use haltdef instead of halt. That way, there won't be a combination of the two depending on whether or not there is more script to process. Consistency is often worthwhile regardless of whether or not it is necessary.


Invision Support
#Invision on irc.irchighway.net

Link Copied to Clipboard