Hey guys,
I was wondering if someone could tell me how to reference Chanserv in my scripting, i'm trying to make a script that if anyone but me changes my modes, it auto changes it back... But i'm not sure what the identifier for serives is... Should i use [email protected]?
Thanks in advance,
Shinji
mirc scripting
Moderator: Supporters
-
- Posts: 17
- Joined: Sat Jun 18, 2005 1:44 pm
- Location: Neo-Tokyo
- Contact:
mirc scripting
Death, Life's true voyeur...
Re: mirc scripting
Why not use mode lock, or mlock. Available with at least ircservices but im sure with anope as well. /chanserv set #channel MLOCK +ntl 30Shintorojin wrote:Hey guys,
I was wondering if someone could tell me how to reference Chanserv in my scripting, i'm trying to make a script that if anyone but me changes my modes, it auto changes it back... But i'm not sure what the identifier for serives is... Should i use [email protected]?
Thanks in advance,
Shinji
Then chanserv will change the modes back. You can also include -mps and stuff like that so if someone adds one that you don't allow it removes it.
Example: (My mode lock is: -ChanServ- Mode lock: +nt-impsklcNf)
[2:36pm] XanaX[a] sets mode: +smi
[2:36pm] XanaX[a] sets mode: +lk 213 21321
[2:36pm] ChanServ sets mode: -smilk 21321
- Darvocet
Sr. Network Admin: EpicIRC.Net
Sr. Network Admin: EpicIRC.Net
I believe he meant on someone deopping etc.. try something like this
on 1:DEOP:*:{
if ($opnick == $me && ($nick != $me || $nick != ChanServ)) {
cs op $chan $me
; _kickbanengine $chan $nick Naughty!
}
}
on 1:DEOP:*:{
if ($opnick == $me && ($nick != $me || $nick != ChanServ)) {
cs op $chan $me
; _kickbanengine $chan $nick Naughty!
}
}
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-
- Posts: 17
- Joined: Sat Jun 18, 2005 1:44 pm
- Location: Neo-Tokyo
- Contact:
-
- Posts: 17
- Joined: Sat Jun 18, 2005 1:44 pm
- Location: Neo-Tokyo
- Contact:
$opnick = person being opped/deopped
$nick = person opping or deopping
Should try re-opping if anyone but ChanServ or yourself deops you. (Of course someone could deop you through ChanServ, but that's another story .)
$nick = person opping or deopping
Code: Select all
on !*:DEOP:#:{
if ($opnick == $me) && ($nick != ChanServ) {
chanserv op # $me
}
}
All spelling mistakes, grammatical errors and stupid comments are intentional.
Yup, it's designed to allow that - ie: people who have channel access I don't mind screwing with me, but other people freak me out
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-
- Posts: 267
- Joined: Tue Jan 18, 2005 3:24 pm
- Location: Scotland - United Kingdom