mIRC Home    About    Download    Register    News    Help

Print Thread
kick from all channels #206635 19/11/08 12:42 PM
Joined: Feb 2005
Posts: 185
S
Skeletor Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Feb 2005
Posts: 185
Hey all,

How would this script be refined so that %whispered is kicked from all common channels?

Code:
#whisper off
on *:TEXT:*:?: {
  if ( $nick == $me ) return
  if ( ( $nick == %whispered ) && ($nick != $me ) )  {
    echo -st 04 14[ $+ $nick $+ 14]3 was trying to chat to you from  14[ $+ $active $+ 14] at $timestamp
    kick $active $nick So Tell Me...How's It Feel Being A Rocket Scientist?
    unset %whispered
    closemsg $nick
  }
  else {
    kick $active $nick The Surgeon General Has Determined That Whispering, May Be Bad For Your Health!!!
    set %whispered $nick
    closemsg $nick
  }
}
#whisper end


sub-zero.homeip.net:6667

Re: kick from all channels [Re: Skeletor] #206637 19/11/08 01:26 PM
Joined: Nov 2006
Posts: 1,559
H
Horstl Offline
Hoopy frood
Offline
Hoopy frood
H
Joined: Nov 2006
Posts: 1,559
to kick $nick in all shared chans, replace your current kicking line with:

Code:
var %n = 1
while ($comchan($nick,%n)) {
  if ($me isop $v1) { kick $v2 $nick <your kick reason goes here> }
  inc %n
}



Re: kick from all channels [Re: Horstl] #206642 19/11/08 03:20 PM
Joined: Feb 2005
Posts: 185
S
Skeletor Offline OP
Vogon poet
OP Offline
Vogon poet
S
Joined: Feb 2005
Posts: 185
Great Stuff

Thank-You.


sub-zero.homeip.net:6667