mirc scripting

Talk about pretty much anything here, but DO NOT USE FOR SUPPORT.

Moderator: Supporters

Locked
Shintorojin
Posts: 17
Joined: Sat Jun 18, 2005 1:44 pm
Location: Neo-Tokyo
Contact:

mirc scripting

Post by Shintorojin »

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
Death, Life's true voyeur...
Darvocet
Posts: 105
Joined: Sun Jun 27, 2004 6:40 am
Location: Houston, TX
Contact:

Re: mirc scripting

Post by Darvocet »

Shintorojin 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
Why not use mode lock, or mlock. Available with at least ircservices but im sure with anope as well. /chanserv set #channel MLOCK +ntl 30

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
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

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!
}
}
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
Shintorojin
Posts: 17
Joined: Sat Jun 18, 2005 1:44 pm
Location: Neo-Tokyo
Contact:

Post by Shintorojin »

hehe, yeah thanks w00t thats exactly what i was refering to. I tried with the ChanServ bit but it didn't work. I'll try yours and see what happens...

Thanks,
Shinji
Death, Life's true voyeur...
Shintorojin
Posts: 17
Joined: Sat Jun 18, 2005 1:44 pm
Location: Neo-Tokyo
Contact:

Post by Shintorojin »

okay i tested it. It seems it doesn't see * JM sets mode: -o JM as identifier $nick...

Anyone got any idea's??

Thanks,
Shinji
Death, Life's true voyeur...
Wiggle
Posts: 19
Joined: Sat Mar 05, 2005 11:52 pm
Location: Belgium

Post by Wiggle »

$opnick = person being opped/deopped
$nick = person opping or deopping

Code: Select all

on !*:DEOP:#:{
  if ($opnick == $me) && ($nick != ChanServ) {
    chanserv op # $me
  }
}
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 :P.)
All spelling mistakes, grammatical errors and stupid comments are intentional.
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

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]
White_Magic
Posts: 267
Joined: Tue Jan 18, 2005 3:24 pm
Location: Scotland - United Kingdom

Post by White_Magic »

lol i thought the first post ment umodes lol oh my *wakes up*
i spend 4 hrs a day gaming and 14hrs on irc, for 5days a week, im not an addict :D
Locked