mIRC Home    About    Download    Register    News    Help

Print Thread
ban command? #25377 21/05/03 10:42 PM
Joined: May 2003
Posts: 25
C
CRAZYGUY Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: May 2003
Posts: 25
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
}


Hmm.....IRC! www.warriorsouls.com
Re: ban command? #25378 21/05/03 10:46 PM
Joined: Mar 2003
Posts: 272
C
c0ldfusi0n Offline
Fjord artisan
Offline
Fjord artisan
C
Joined: Mar 2003
Posts: 272
On @*:TEXT:-ban*:#:{ mode $chan +b $address($2,3) }
Syntax: /msg #Channel -ban <Nickname>


- cF
Dedicated helper for rent.
Re: ban command? #25379 21/05/03 11:01 PM
Joined: May 2003
Posts: 25
C
CRAZYGUY Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: May 2003
Posts: 25
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
-


Hmm.....IRC! www.warriorsouls.com
Re: ban command? #25380 21/05/03 11:03 PM
Joined: Mar 2003
Posts: 272
C
c0ldfusi0n Offline
Fjord artisan
Offline
Fjord artisan
C
Joined: Mar 2003
Posts: 272
Works fine for me.


- cF
Dedicated helper for rent.
Re: ban command? #25381 21/05/03 11:12 PM
Joined: May 2003
Posts: 25
C
CRAZYGUY Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: May 2003
Posts: 25
it does not for me thats all it says


Hmm.....IRC! www.warriorsouls.com
Re: ban command? #25382 21/05/03 11:23 PM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
It works for me too, you sure you haven't left a previous version of the script in you remotes?

Re: ban command? #25383 22/05/03 12:21 AM
Joined: May 2003
Posts: 25
C
CRAZYGUY Offline OP
Ameglian cow
OP Offline
Ameglian cow
C
Joined: May 2003
Posts: 25
Ya iam sure its a clean script


Hmm.....IRC! www.warriorsouls.com
Re: ban command? #25384 22/05/03 02:10 AM
Joined: Dec 2002
Posts: 45
J
Julie2 Offline
Ameglian cow
Offline
Ameglian cow
J
Joined: Dec 2002
Posts: 45
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

Re: ban command? #25385 22/05/03 02:43 AM
Joined: Mar 2003
Posts: 272
C
c0ldfusi0n Offline
Fjord artisan
Offline
Fjord artisan
C
Joined: Mar 2003
Posts: 272
"//echo -a $isalias(mode)" Would be better since typing "/alias mode" would simply overwrite the whole thing.


- cF
Dedicated helper for rent.
Re: ban command? #25386 22/05/03 10:25 AM
Joined: Jan 2003
Posts: 3,012
KingTomato Offline
Hoopy frood
Offline
Hoopy frood
Joined: Jan 2003
Posts: 3,012
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


-KingTomato
Re: ban command? #25387 22/05/03 10:32 AM
Joined: Dec 2002
Posts: 3,138
C
Collective Offline
Hoopy frood
Offline
Hoopy frood
C
Joined: Dec 2002
Posts: 3,138
Most servers capitalise the command in the 421 (unknown command) raw.