mIRC Home    About    Download    Register    News    Help

Print Thread
#198424 28/04/08 01:09 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
Code:
menu nicklist {
  -
  .No Advertising
  ...warning: { say 4[12 $$* 4]1, 9,1no spamming please. }
  ...kick: { kick # $* No spamming. }
  ...kickban: { kick # $* No spamming. | ban # $* 2 | kick # $* No spamming. }

that one kick ppl who i selected from nicklist but the ban part not works what must i change for kickban part ?

xyzzy #198425 28/04/08 02:19 PM
Joined: Jan 2003
Posts: 2,523
Q
Hoopy frood
Offline
Hoopy frood
Q
Joined: Jan 2003
Posts: 2,523
One of the limitations of $* is that it can only be used once in a script. Fortunately, one command is all you need for banning: /ban -k
Code:
menu nicklist {
  -
  .No Advertising
  ...warning: { say 4[12 $$* 4]1, 9,1no spamming please. }
  ...kick: { kick # $* No spamming. }
  ...kickban: { ban -k # $* 2 No spamming. }



/.timerQ 1 0 echo /.timerQ 1 0 $timer(Q).com
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
thnx wink

xyzzy #198427 28/04/08 02:47 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
...warning: { say 4[12 $$* 4]1, 9,1your nick is inappropriate. Please change it by typing /nick newnick. }
...kick: { kick # $* Inappropriate nick. }
...kickban (IP): { ban -k # $* 2 Inappropriate nick. }
...kickban (nick): { ban-k # +b $* $+ !*@* Inappropriate nick. }
i did try to ban nickname nick!*@* but the ban is nick!ident@host
umm can make it as nick!*@* ?

xyzzy #198429 28/04/08 03:53 PM
Joined: Aug 2005
Posts: 1,052
L
Hoopy frood
Offline
Hoopy frood
L
Joined: Aug 2005
Posts: 1,052
.mode # +b $$1

that will ban the nick


Code:
if $reality > $fiction { set %sanity Sane }
Else { echo -a *voices* }
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
yup that ban the nick but only 1
i was mean ban all selected nicks

xyzzy #198432 28/04/08 04:37 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

You could have a separate alias...

Code:

alias kbnick {
  if (($me isop #) && ($1 ison #)) {
    mode # +b $1 $+ !*@*
    kick # $1-
  }
}



And here's the nicklist menu item...

...warning: { say 4[12 $$* 4]1, 9,1your nick is inappropriate. Please change it by typing /nick newnick. }
...kick: { kick # $* Inappropriate nick. }
...kickban (IP): { ban -k # $* 2 Inappropriate nick. }
...kickban (nick): { kbnick $* Inappropriate nick. }

~ Edit ~
You could just use mask type 9 with qwerty's code. No alias would be necessary and they could still rejoin the channel after changing their nick
...

Code:

...warning: { say 4[12 $$* 4]1, 9,1your nick is inappropriate. Please change it by typing /nick newnick. }
...kick: { kick # $* Inappropriate nick. }
...kickban (IP): { ban -k # $* 2 Inappropriate nick. }
...kickban (nick): { ban -k # $* 9 Inappropriate nick. }




RoCk #198433 28/04/08 04:59 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
Originally Posted By: RoCk

You could just use mask type 9 with qwerty's code. No alias would be necessary and they could still rejoin the channel after changing their nick[/i]...

banning special!*@*.69893050.3404F77C.IP
not as special!*@* u sure the mask right ?

xyzzy #198434 28/04/08 05:00 PM
Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031

Yes it's the right one. Using the kbnick alias in my last post is the only alternative I can think of.

RoCk #198436 28/04/08 05:26 PM
Joined: Nov 2006
Posts: 143
X
xyzzy Offline OP
Vogon poet
OP Offline
Vogon poet
X
Joined: Nov 2006
Posts: 143
yeh ur alternative think work well thnx wink


Link Copied to Clipboard