mIRC Home    About    Download    Register    News    Help

Print Thread
#178957 16/06/07 08:44 PM
Joined: May 2005
Posts: 54
M
Mlupu Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2005
Posts: 54
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 ?


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

Mlupu #178961 16/06/07 08:52 PM
Joined: Sep 2005
Posts: 2,881
H
Hoopy frood
Offline
Hoopy frood
H
Joined: Sep 2005
Posts: 2,881
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
Joined: May 2005
Posts: 54
M
Mlupu Offline OP
Babel fish
OP Offline
Babel fish
M
Joined: May 2005
Posts: 54
yap, you are right. I had been used mirc 5.91. Now i have downloaded 6.21 and it works. thanks ! smile


/server IRC.RomaniaIRC.ORG

Link Copied to Clipboard