|
|
|
Joined: Jan 2003
Posts: 36
Ameglian cow
|
OP
Ameglian cow
Joined: Jan 2003
Posts: 36 |
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
|
|
|
|
Joined: Dec 2002
Posts: 843
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 843 |
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.
Never compare yourself to others - they're more screwed up than you think.
|
|
|
|
Joined: Jan 2003
Posts: 36
Ameglian cow
|
OP
Ameglian cow
Joined: Jan 2003
Posts: 36 |
hmm but when user bans me then it works just fine. it automatically debans me
|
|
|
|
Joined: Dec 2002
Posts: 54
Babel fish
|
Babel fish
Joined: Dec 2002
Posts: 54 |
Well, if you have ChanServ access to the channel you could do something like:
on *:ban:#: {
if ($nick == $me) msg chanserv unban $chan me
else return
}
|
|
|
|
Joined: Dec 2002
Posts: 843
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 843 |
Which would then alert the ops of that channel to remove him/her from the access list.
Never compare yourself to others - they're more screwed up than you think.
|
|
|
|
Joined: Jan 2003
Posts: 36
Ameglian cow
|
OP
Ameglian cow
Joined: Jan 2003
Posts: 36 |
laz i have tried that it works yes, but it dont work when they ban me by my host address
|
|
|
|
Joined: Dec 2002
Posts: 54
Babel fish
|
Babel fish
Joined: Dec 2002
Posts: 54 |
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: 843
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 843 |
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.
Never compare yourself to others - they're more screwed up than you think.
|
|
|
|
Joined: Dec 2002
Posts: 395
Fjord artisan
|
Fjord artisan
Joined: Dec 2002
Posts: 395 |
Use: if ($banmask iswm $address($me,5))
|
|
|
|
Joined: Jan 2003
Posts: 36
Ameglian cow
|
OP
Ameglian cow
Joined: Jan 2003
Posts: 36 |
im founder of that channel and my firends are joking sometimes so i need protection for myseld and that +a command doesnt work at our irc server
|
|
|
|
Joined: Dec 2002
Posts: 2,985
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 2,985 |
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. 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: 3,012
Hoopy frood
|
Hoopy frood
Joined: Jan 2003
Posts: 3,012 |
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:
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
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; 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 $+ )
}
}
-KingTomato http://www.kingtomato.com/AIM: otamoTgniK
-KingTomato
|
|
|
|
Joined: Jan 2003
Posts: 36
Ameglian cow
|
OP
Ameglian cow
Joined: Jan 2003
Posts: 36 |
ty that last one worked fine
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
or you could simply use random gatekeeperpassport + clone so that only an ip ban or server ban could keep you banned
new username: tidy_trax
|
|
|
|
Joined: Dec 2002
Posts: 1,527
Hoopy frood
|
Hoopy frood
Joined: Dec 2002
Posts: 1,527 |
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
D3m0nnet.com
|
|
|
|
Joined: May 2003
Posts: 2,265
Hoopy frood
|
Hoopy frood
Joined: May 2003
Posts: 2,265 |
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.
new username: tidy_trax
|
|
|
|
|
|
|
|