mIRC Home    About    Download    Register    News    Help

Print Thread
#106828 04/01/05 07:42 PM
Joined: Aug 2004
Posts: 14
H
Hive Offline OP
Pikka bird
OP Offline
Pikka bird
H
Joined: Aug 2004
Posts: 14
Does anyone have a script that kickbans all users on join, as we are moving channels and I want them all to go to the other place. Thanks.

#106829 04/01/05 08:03 PM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
Code:
on 1:join:#channel: {
  if ($nick == $me) { halt }
  else { ban -k $chan $nick We're moving channels, join #newchannel
}

Last edited by LostServ; 04/01/05 08:03 PM.
#106830 04/01/05 08:34 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Code:
on 1:join:#channel: {
  if ($nick == $me) { halt }
  else { ban -k $chan $nick We're moving channels, join #newchannel [color:red]}[/color]
}


That code wont work, you're missing the closing bracket ' } '
Why not use the ! prefix so you don't need IF statements.

Code:
on [color:red]![/color]1:join:#channel: {
  ban -k $chan $nick We're moving channels, join #newchannel
}

#106831 04/01/05 09:54 PM
Joined: Aug 2004
Posts: 14
H
Hive Offline OP
Pikka bird
OP Offline
Pikka bird
H
Joined: Aug 2004
Posts: 14
Ok, thanks a bunch guys.

#106832 04/01/05 10:11 PM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
You're welcome.

#106833 04/01/05 11:53 PM
Joined: Mar 2004
Posts: 359
L
Fjord artisan
Offline
Fjord artisan
L
Joined: Mar 2004
Posts: 359
Quote:

Why not use the ! prefix so you don't need IF statements.


I'm use to using if's

#106834 05/01/05 12:24 AM
Joined: Dec 2002
Posts: 3,547
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,547
Well that is your prerogative dude, but if they aren't needed, then you don't need to use it that's all I'm saying. But by all means continue to use them! smile


Link Copied to Clipboard