mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Apr 2004
Posts: 27
P
parvez Offline OP
Ameglian cow
OP Offline
Ameglian cow
P
Joined: Apr 2004
Posts: 27
i need a auto kick ban commmand
if someone kick+ban me then it will auto tell chanserv to unban my nick and i join auto and kick that user out that a message! PLEASE I NEED THAT CODE HELP ME
THANK YOU
confused confused confused confused

Joined: Oct 2003
Posts: 306
J
Fjord artisan
Offline
Fjord artisan
J
Joined: Oct 2003
Posts: 306
on 1:ban:#: { .echo $nick this nick are kicking you in channel # !!!! | .msg chanserv invite # }

start with this



mess with the best
Joined: Dec 2003
Posts: 261
M
Fjord artisan
Offline
Fjord artisan
M
Joined: Dec 2003
Posts: 261
Hi, there.
on 1:ban:#: will be executed if ANYBODY is banned.
So, let's try:
Code:
on @1:ban:#:{
  if ($banmask iswm $address($me,5)) {
    msg ChanServ Unban $chan
    echo -a $nick is banning you on $chan
  }
}

Also, maybe you want to add this:
Code:
on 1:kick:#:{
  if ($knick == $me) {
    var %nick.kicked.you = $nick
    join $chan
    ban -k $chan %nick.kicked.you 2
  }  
}


Note1: You can replace msg ChanServ Unban $chan with mode $chan -b $banmask
Note2: Code is NOT tested! grin

Last edited by milosh; 08/04/04 09:15 PM.

velicha dusha moja Gospoda
Joined: Dec 2002
Posts: 774
T
Hoopy frood
Offline
Hoopy frood
T
Joined: Dec 2002
Posts: 774
on 1:kick:#:{
if ($knick == $me) {
var %nick.kicked.you = $nick
join $chan
ban -k $chan %nick.kicked.you 2
}
}


When you join channel you aren't opped if there is some1 on the channel, so you can't kick and if there weren't any1 on the channel there wouldn't be any1 to kick.

on 1:kick:#:{
if ($knick == $me) {
set %nick.kicked $nick
join $chan
set %chan kicked $chan
}
}
on *:op:%chan.kicked: {
if (( $opnick == $me ) && ( %nick.kicked ison $chan )) {
ban -k %nick.kicked 2
unset %nick.kicked
unset %chan.kicked
}
}


something like this should work better, but this isn't tested either...


Code:
//if ( khaled isgod ) echo yes | else echo no
Joined: Feb 2004
Posts: 2,019
Hoopy frood
Offline
Hoopy frood
Joined: Feb 2004
Posts: 2,019
Hi jacksparrow,

plz don't try to help people if u don't know the right solutions urself...the code u gave him has nothing to do with what he is asking for. Just a tip for the future.

Regards


Gone.

Link Copied to Clipboard