mIRC Home    About    Download    Register    News    Help

Print Thread
#163730 04/11/06 01:55 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
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!*@*

#163731 04/11/06 01:59 AM
Joined: Mar 2003
Posts: 612
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
mode $chan +bb $wildsite $nick

btk


billythekid
#163732 04/11/06 02:03 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
uhmmm u forgot the hget?

#163733 04/11/06 04:29 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
mode $chan +bb $wildsite $nick

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

#163734 04/11/06 06:02 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
Anyone could help me?

thanks...

#163735 04/11/06 03:38 PM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
Please supply an example of how the information is stored in the hash table.

#163736 04/11/06 11:04 PM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
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)

#163737 05/11/06 01:10 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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    }
  }
}
 

#163738 07/11/06 07:40 AM
Joined: Oct 2006
Posts: 342
L
learn3r Offline OP
Fjord artisan
OP Offline
Fjord artisan
L
Joined: Oct 2006
Posts: 342
Doesn't work

#163739 07/11/06 08:50 AM
Joined: Aug 2004
Posts: 7,252
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Aug 2004
Posts: 7,252
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    }
  }
} 


Link Copied to Clipboard