mIRC Home    About    Download    Register    News    Help

Print Thread
#126466 30/07/05 06:14 PM
Joined: Jul 2005
Posts: 22
B
Ameglian cow
OP Offline
Ameglian cow
B
Joined: Jul 2005
Posts: 22
when i kick / ban some one from my channel, if some @ or that baned nick -b the banned adress. How is it posible that i put the +b automaticly

example
Quote:

°19:56:47° * BoR1s sets mode: +b *!*@=PIK--373B32DC.pat-pool.ki.sbb.co.yu
°19:56:57° * MARIO sets mode: -b *!*@=PIK--373B32DC.pat-pool.ki.sbb.co.yu
°19:56:57° * BoR1s sets mode: +b *!*@=PIK--373B32DC.pat-pool.ki.sbb.co.yu


so i automaticly +b again the user.

Is this possible ?

#126467 30/07/05 07:33 PM
Joined: Dec 2002
Posts: 25
T
Ameglian cow
Offline
Ameglian cow
T
Joined: Dec 2002
Posts: 25
What if the person setting -b has a similar script? You could go on forever until one of you gets k-lined for flooding smile

#126468 02/08/05 07:49 PM
Joined: Jul 2005
Posts: 51
P
Babel fish
Offline
Babel fish
P
Joined: Jul 2005
Posts: 51
it's possible, yes.

on *:UNBAN:#: {
if ($banmask == something) {
mode $chan +b $banmask
}
}


chadchoud @ DALnet
#126469 02/08/05 08:17 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
As mentioned, this can provide a loop with the other person... you should probably do this instead:

Code:
on @*:unban:#: {
  if ($nick != $me) {
    mode $chan -o+b $nick $banmask
    .notice $nick Removing my bans is not allowed.
  }
} 


Note that if you wanted to make it only happen to nicks you ban, you'd have to create a list of nicks you've banned.

Code:
on @*:ban:#chan: {
  if ($nick == $me) {
    write mybans.txt $banmask
  }
}

on @*:unban:#: {
  if ($nick != $me) {
    if ($read(mybans.txt,w,$banmask)) {
      mode $chan -o+b $nick $banmask
      .notice $nick Removing my bans is not allowed.
    }
  }
  else {
    if ($read(mybans.txt,w,$banmask)) {
      write -dl $+ $readn mybans.txt
    }
  }
} 


Invision Support
#Invision on irc.irchighway.net
#126470 02/08/05 08:20 PM
Joined: Apr 2003
Posts: 701
K
Hoopy frood
Offline
Hoopy frood
K
Joined: Apr 2003
Posts: 701
I might be seeing this too simple, but why do you op people you don't trust in the first place?

#126471 02/08/05 08:26 PM
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Hehe. A very good point. smile


Invision Support
#Invision on irc.irchighway.net
#126472 15/08/05 11:01 AM
Joined: Jun 2005
Posts: 30
_
Ameglian cow
Offline
Ameglian cow
_
Joined: Jun 2005
Posts: 30
Loads of people do that because they are pressured into it.

Also, mabye it is a bot that is unbanning. */me 's bot will protect _DuDe_ from getting banned. After 3 timesof me being banned, the banner gets /bigbanned-kick {Very hard to beat,since It saves the ban for 3 hours, even if ChanServ unbans, he sets it right back up}*

~mike~


Link Copied to Clipboard