mIRC Home    About    Download    Register    News    Help

Print Thread
#178957 16/06/07 08:44 PM
M
Mlupu
Mlupu
M
hy.

i have a little problem. i have this code from someone:
Code:
alias get.user return { $1 }
alias get.pass return { $1 }
on *:INPUT:#:{
  if ($1 == ban) ban -k # $2 2 $3-
  elseif ($1 == unban) mode # $+(-,$str(b,$numtok($2-,32))) $2-



My friend's script is work, if i try to banned someone with the "ban" command, the code is not working and in my status is: * /ban: no such user -k
Can you help me ?

#178960 16/06/07 08:50 PM
Joined: Dec 2002
Posts: 3,534
S
Hoopy frood
Offline
Hoopy frood
S
Joined: Dec 2002
Posts: 3,534
That code seems to work for me.

#178961 16/06/07 08:52 PM
Joined: Sep 2005
Posts: 2,630
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,630
You're most likely using an older version of mIRC which didn't have the -k switch, or you may have a custom /ban alias. Try using !ban instead.

Also, you're misusing { } braces:

Code:
alias get.user { return $1 }
alias get.pass { return $1 }
on *:INPUT:#:{
  if ($1 == ban) ban -k # $2 2 $3-
  elseif ($1 == unban) mode # $+(-,$str(b,$numtok($2-,32))) $2-
}

hixxy #178963 16/06/07 08:55 PM
M
Mlupu
Mlupu
M
yap, you are right. I had been used mirc 5.91. Now i have downloaded 6.21 and it works. thanks ! smile


Link Copied to Clipboard