mIRC Home    About    Download    Register    News    Help

Print Thread
#136495 29/11/05 07:21 AM
Joined: Nov 2005
Posts: 2
S
Seeker_ Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Nov 2005
Posts: 2
Hi mIRC coder gods,

I need help with a few scripts-

1
If i get kicked from a channel i have auto-ops in, it will automatically make me re-join the channel, and then kick the person that kicked me. kinda like a revenge script.

2
If someone de-ops me and then bans me in a channel i have auto-ops in,, it will op me and then remove the ban, and kick them with a message like 'dont ban me' - i've seen this one around.

Thanks,

Sean

#136496 29/11/05 08:06 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Next time, please use the search option. I found this basic code in response to another query like yours, to which I had responded.
Please note, that if the network you're on doesn't have chanserv, then this won't work, and I can't think of another way of doing it.

Code:
 on *:ban:#:{
  if ($bnick == $me) || ($banmask iswm $address($me,5)) {
    .set %kpchan $chan
    .set %kpnick $nick
    .set %kpaddress $address($nick,3)
    .chanserv invite $chan
    .chanserv deop %kpchan %kpnick
    .chanserv unban %kpchan 
  }
}
on *:OP:%kpchan:{
  if ($opnick == $me) {
    .mode %kpchan -o+b %kpnick %kpaddress
    .kick %kpchan %kpnick [Auto][Kick]: reason(kick Revenge) 
    .unset %kp*
  }
}
on *:SERVEROP:%kpchan:{
  if ($opnick == $me) {
    .mode %kpchan -o+b %kpnick %kpaddress
    .kick %kpchan %kpnick [Auto][Kick]: reason(kick Revenge) 
    .unset %kp*
  }
}   
 

#136497 29/11/05 09:37 PM
Joined: Nov 2005
Posts: 2
S
Seeker_ Offline OP
Bowl of petunias
OP Offline
Bowl of petunias
S
Joined: Nov 2005
Posts: 2
Hey,

Thanks for the reply. This script won't unban me from the channel, or re-join it after i manually remove the ban myself using /msg chanserv unbanme. (i have auto-ops in these channels).

I also get this message

[ChanServ]: --- Incorrect Syntax For 'DEOP' ---

Thanks,

Sean

#136498 30/11/05 02:14 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Best suggestion is for you to let me know what network this is for, so that I can check the chanserv commands. Not all chanservs use the same commands and even the one's that use the same commands don't always use the same format.

#136499 30/11/05 02:40 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
This is going by the IRC server in your profile. In order to deop someone you need to specify your channel password.

Code:
chanserv deop %kpchan <Channel Pass> %kpnick


-Andy


Link Copied to Clipboard