mIRC Homepage
Posted By: CRAZYGUY ban command? - 21/05/03 10:42 PM
Ok, I have been working on a ban command for my bot but it seems not to work heres what i have:

on *:text:-ban *:#:{
set %nick $2
mode # +b $address(%nick,3)
unset %nick
}
Posted By: c0ldfusi0n Re: ban command? - 21/05/03 10:46 PM
On @*:TEXT:-ban*:#:{ mode $chan +b $address($2,3) }
Syntax: /msg #Channel -ban <Nickname>
Posted By: CRAZYGUY Re: ban command? - 21/05/03 11:01 PM
Hmm well that seems to not work it says:

-
+B Unknown command
-
+B Unknown command
-
+B Unknown command
-
+B Unknown command
-
+B Unknown command
-
+B Unknown command
-
+B Unknown command
-
+B Unknown command
-
Posted By: c0ldfusi0n Re: ban command? - 21/05/03 11:03 PM
Works fine for me.
Posted By: CRAZYGUY Re: ban command? - 21/05/03 11:12 PM
it does not for me thats all it says
Posted By: Collective Re: ban command? - 21/05/03 11:23 PM
It works for me too, you sure you haven't left a previous version of the script in you remotes?
Posted By: CRAZYGUY Re: ban command? - 22/05/03 12:21 AM
Ya iam sure its a clean script
Posted By: Julie2 Re: ban command? - 22/05/03 02:10 AM
from that error msg, it sounds like you may have accidentally created an alias named mode. try typing in mirc /alias mode

if it finds one and deletes it, then try your script again
Posted By: c0ldfusi0n Re: ban command? - 22/05/03 02:43 AM
"//echo -a $isalias(mode)" Would be better since typing "/alias mode" would simply overwrite the whole thing.
Posted By: KingTomato Re: ban command? - 22/05/03 10:25 AM
b and B are two diff modes. Make sure you typed a lowercase b for ban, rather than an uppercase when transferring the script that coldfusi0n made
Posted By: Collective Re: ban command? - 22/05/03 10:32 AM
Most servers capitalise the command in the 421 (unknown command) raw.
© mIRC Discussion Forums