mIRC Home    About    Download    Register    News    Help

Print Thread
S
s0tt0
s0tt0
S
I want to make a ban protection in certain channel. I have managed to do it with ordinary IRC nicks who's in channel but when they use the Chanserv to ban me then it dont work. How can i make this script work like this: if chanserv bans me in certain channel then i'll unban myself automatically from that channel and rejoin there? Please help. It's kind a messy text but hope you can understand it smile

Joined: Dec 2002
Posts: 817
P
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 817
Ban protections almost never work. Even if it did, you'll probably just earn yourself a k-line from the server when you get found out.

S
s0tt0
s0tt0
S
hmm but when user bans me then it works just fine. it automatically debans me

L
laz
laz
L
Well, if you have ChanServ access to the channel you could do something like:

Code:
 
on *:ban:#: {
  if ($nick == $me) msg chanserv unban $chan me
  else return
} 



Joined: Dec 2002
Posts: 817
P
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 817
Which would then alert the ops of that channel to remove him/her from the access list. smirk

S
s0tt0
s0tt0
S
laz i have tried that it works yes, but it dont work when they ban me by my host address

L
laz
laz
L
Poppy - You mean in your channels if some one bans another operator they can't unban theirself?

On the network I go on (not a public one, only about 100 people) if you send a message to ChanServ like:

/msg chanserv unban #channel me

ChanServ will remove your hostmask (I guess it will get your hostmask when you message it). I guess it depends on the version of ChanServ your network has.

Joined: Dec 2002
Posts: 817
P
Hoopy frood
Offline
Hoopy frood
P
Joined: Dec 2002
Posts: 817
In the channel I op in, one op wouldn't ban another without a very good reason, and therefore if that was the case, the ban would stay - their op status would be revoked and they'd be removed from the access list for that room so they couldn't invite themselves in. Basically if you get banned, you need to take it up with the ChanOps.

Last edited by Poppy; 05/01/03 08:34 PM.
Joined: Dec 2002
Posts: 395
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2002
Posts: 395
Use:
if ($banmask iswm $address($me,5))

S
s0tt0
s0tt0
S
im founder of that channel smile and my firends are joking sometimes so i need protection for myseld smile and that +a command doesnt work at our irc server

Joined: Dec 2002
Posts: 2,958
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Dec 2002
Posts: 2,958
The script Laz showed you should work though this one is better. If you are the founder and you are being kicked I'd be dropping those that do it if they refuse to stop. If your room is big then the normal users would find it disruptive.

Code:
on *:kick:#: {
  if ($knick == $me) {
    .msg chanserv unban # me
    .timer 1 1 join #
  }
}
One thing everyone, including me, forgot to mention too...

What if one of your fellow hosts decides to shitlist you (for fun of course)? Your constant rejoins and their ban enforcer will get you both killed for flooding :-รพ

Joined: Jan 2003
Posts: 2,973
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Jan 2003
Posts: 2,973
K, sry, but i have to put my 2 cents in..

Forst off, Laz's script will only work if the victim of the ban is the banner himself (i.e. i ban myself)-- You would need $bnick == $me, not $nick..

Second off, the point about ($banmask iswm $address($me, 5)) is definatly the best route to take. Its quick and easy, and very effective. To egt you thinking here are a few versions..

Your average on kick script:
Code:
on 1:KICK:#: {
  ; was it us?
  if ($knick == $me) {
    ; auto-rejoin the channel
    /join $chan
    ; assuming we have op again, get him back..
    /mode $chan -ov $nick $nick
    ; if you wish to kick them, uncomment the next line
    ;/kick $chan $nick Please don't kick me...
  }
}


Now, for the ban (choose the one that best fits your situation
Code:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; First version, with no chanserv access, just auto-op access..
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
on @1:BAN:#: {
  ; was it us?
  if (($bnick == $me) || ($banmask iswm $address($me, 5)) {
    ; unban ourselves
    /mode $chan -bbb $banmask
    ; get him back
    /mode $chan -ov $nick $nick
    ; if you wish to kick them, uncomment the next line
    ;/kick $chan $nick Please don't ban me...
  }
}

;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; With chanserv acces (Assuming we already identifyed
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
on @1:BAN:#: {
  ; was it us?
  if (($bnick == $me) || ($banmask iswm $address($me, 5)) {
    ; unban ourselves
    /chanserv unban $chan $me
    ; get him back
    /mode $chan -ov $nick $nick
    ; if you wish to kick them, uncomment the next line
    ;/chanserv kick $chan $nick Please don't ban me... ( $+ $me $+ )
  }
}


grin

-KingTomato
http://www.kingtomato.com/
AIM: otamoTgniK

S
s0tt0
s0tt0
S
ty that last one worked fine smile

P
pheonix
pheonix
P
or you could simply use random gatekeeperpassport + clone so that only an ip ban or server ban could keep you banned smirk

Joined: Dec 2002
Posts: 1,518
_
Hoopy frood
Offline
Hoopy frood
_
Joined: Dec 2002
Posts: 1,518
ok say this person ISNT chatting in msn ..... what u suggested doesnt do anything for any user other than an msn user .... where mirc has been banned

P
pheonix
pheonix
P
you can get random gate for irc as well ya know .
but only if you use an msn email to connect to irc

Last edited by pheonix; 07/05/03 12:11 PM.

Link Copied to Clipboard