mIRC Home    About    Download    Register    News    Help

Print Thread
Joined: Oct 2006
Posts: 1
Q
qlinez Offline OP
Mostly harmless
OP Offline
Mostly harmless
Q
Joined: Oct 2006
Posts: 1
First of all, hi and thx for help ( if you prefer to help me :P )

I need script that on text something happenes.
I dont know how to explain, i am only starting to script...
So ETC:
If i type in channel where i have access +ban "nick" - That nick gots banned from the channel in wich i posted it :P
Or i type +V nick" - and the man i noticed nickname gets Voice smile

I dont know did you understood smth, but please - help for starters wink

Joined: Dec 2002
Posts: 2,031
R
Hoopy frood
Offline
Hoopy frood
R
Joined: Dec 2002
Posts: 2,031
Code:
on @*:TEXT:+ban *:#: {
  if ((!$2) || ($2 == $me)) return
  if ($2 !ison #) notice $nick I don't see $2 on #
  else ban -k # $2 3 $3-
}
on @*:TEXT:+v &:#: {
  if ($2 == $me) return
  if ($2 !ison #) notice $nick I don't see $2 on #
  elseif ($2 !isreg #) notice $nick $2 is already voice or higher on #
  else mode # +v $2
}


~ Edit ~
Riamus2: Very true .. modified the code .. thanks smile

Last edited by RoCk; 17/10/06 01:56 PM.
Joined: Oct 2004
Posts: 8,330
Hoopy frood
Offline
Hoopy frood
Joined: Oct 2004
Posts: 8,330
Rock, your use of & prevents the ban from triggering if there is a $3- (only $1 and $2). You should use * there and just use a check for if (!$2) { error message here }.


Invision Support
#Invision on irc.irchighway.net
Joined: Mar 2003
Posts: 612
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Mar 2003
Posts: 612
might be better in an on input too, since he wants to do the banning himself.

btk


billythekid

Link Copied to Clipboard