mIRC Home    About    Download    Register    News    Help

Print Thread
#16319 21/03/03 08:16 PM
Joined: Jan 2003
Posts: 21
J
Jay_T Offline OP
Ameglian cow
OP Offline
Ameglian cow
J
Joined: Jan 2003
Posts: 21
Ok my question is when a IRCOP join a channel i am in that channel then my script will auto detected that person is IRCOP and echo it.
Can someone help me with that code?

#16320 22/03/03 12:55 AM
Joined: Mar 2003
Posts: 272
C
Fjord artisan
Offline
Fjord artisan
C
Joined: Mar 2003
Posts: 272
See this post for explanations.
Code:
On 1:JOIN:#:{ .whois $nick | set %target $chan | .enable #opercheck }

Code:
#opercheck off
raw 313:*:{ echo %target * $nick has joined %target (Oper) | unset %target }
#opercheck end


Be sure to import the other raws from the post mentionned awbove.


- cF
Dedicated helper for rent.
#16321 22/03/03 01:36 AM
Joined: Dec 2002
Posts: 2,809
C
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 2,809
I would suggest doing /who the_nick and check for an * rather than doing /whois simply because /who only returns 2 numerics where as /whois returns many. Even better (if your network supports it, and most do) would be to /userhost the_nick and check for an *. /userhost only returns 1 numeric so it is even easier to setup the script for that.


Link Copied to Clipboard