mIRC Home    About    Download    Register    News    Help

Print Thread
ban lock #163730
04/11/06 01:55 AM
04/11/06 01:55 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
learn3r  Offline OP
Fjord artisan
L

Joined: Oct 2006
Posts: 342
on @*:UNBAN:#:{
if ($hfind($+(war,$chan),$banmask,1,w).data) && ($banmask != *!*@*) { mode $chan +bkl $banmask }
}

i banned the nick ang host of my opponent and he used cs unban $chan $me
he unbabanned the $nick!*@* and !*@host --

now i ban again the two but gets


* me sets mode: +b nick!*@*
* me sets mode: +b *!*@host


how can i ban em in one banning..
like this...

* me sets mode: +bb *!*@host nick!*@*

Re: ban lock #163731
04/11/06 01:59 AM
04/11/06 01:59 AM
Joined: Mar 2003
Posts: 612
Aberdeen, Scotland
B
billythekid Offline
Fjord artisan
billythekid  Offline
Fjord artisan
B

Joined: Mar 2003
Posts: 612
Aberdeen, Scotland
mode $chan +bb $wildsite $nick

btk


billythekid
Re: ban lock #163732
04/11/06 02:03 AM
04/11/06 02:03 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
learn3r  Offline OP
Fjord artisan
L

Joined: Oct 2006
Posts: 342
uhmmm u forgot the hget?

Re: ban lock #163733
04/11/06 04:29 AM
04/11/06 04:29 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
learn3r  Offline OP
Fjord artisan
L

Joined: Oct 2006
Posts: 342
mode $chan +bb $wildsite $nick

if i use that it will ban chanserv*!*@*

Re: ban lock #163734
04/11/06 06:02 AM
04/11/06 06:02 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
learn3r  Offline OP
Fjord artisan
L

Joined: Oct 2006
Posts: 342
Anyone could help me?

thanks...

Re: ban lock #163735
04/11/06 03:38 PM
04/11/06 03:38 PM
Joined: Aug 2004
Posts: 7,252
Ontario, Canada
R
RusselB Offline
Hoopy frood
RusselB  Offline
Hoopy frood
R

Joined: Aug 2004
Posts: 7,252
Ontario, Canada
Please supply an example of how the information is stored in the hash table.

Re: ban lock #163736
04/11/06 11:04 PM
04/11/06 11:04 PM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
learn3r  Offline OP
Fjord artisan
L

Joined: Oct 2006
Posts: 342
hadd -m $+(war-,$chan) warlist $addtok($hget($+(war-,$chan),warlist),$nick,44)


hadd -m $+(war,$chan) $nick $address($nick,5)

Re: ban lock #163737
05/11/06 01:10 AM
05/11/06 01:10 AM
Joined: Aug 2004
Posts: 7,252
Ontario, Canada
R
RusselB Offline
Hoopy frood
RusselB  Offline
Hoopy frood
R

Joined: Aug 2004
Posts: 7,252
Ontario, Canada
Give this a try
Code:
 on @*:unban:#:{
  if $banmask != *!*@* {
    var %nick = $hfind($+(war,$chan),$banmask,1,w).data),%banmask = $hget($+(war,$chan),%nick),%nick = $gettok(%nick,1,33)
    if %nick ison $chan {      .ban -k $chan %nick Banned    }
    elseif %banmask {      .mode $chan +b $banmask    }
  }
}
 

Re: ban lock #163738
07/11/06 07:40 AM
07/11/06 07:40 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
learn3r  Offline OP
Fjord artisan
L

Joined: Oct 2006
Posts: 342
Doesn't work

Re: ban lock #163739
07/11/06 08:50 AM
07/11/06 08:50 AM
Joined: Aug 2004
Posts: 7,252
Ontario, Canada
R
RusselB Offline
Hoopy frood
RusselB  Offline
Hoopy frood
R

Joined: Aug 2004
Posts: 7,252
Ontario, Canada
Sorry I didn't catch these errors before posting. I'm also sorry that it took nearly two days for you to let me know that it wasn't working.

Here's the corrected
Code:
 on @*:unban:#:{
  if $banmask != *!*@* {
    var %nick = $hget($+(war,$chan),$hfind($+(war,$chan),$banmask,1,w).data), %banmask = $gettok(%nick,-1,32), %nick = $gettok(%nick,1,32)
    if %nick ison $chan {      .ban -k $chan %nick Banned    }
    elseif %banmask {      .mode $chan +b %banmask    }
  }
}