mIRC Home    About    Download    Register    News    Help

Print Thread
#73036 28/02/04 08:39 AM
G
Gamersad
Gamersad
G
Here is a question i can't seem to find an answer for. I'm trying to get my bot to be able to trigger the !ban controls. Which it does fine with it can now ban people easily. I can't get it to unban them using !unban. Well actualy i can using..

on 100:text:!unban*:#:/mode $chan -b $address(%nick,4)

my only problem is if i !ban someone else then the varable goes waay. Is there anyway to set one var so it ='s more then one object?

#73037 28/02/04 10:27 AM
Joined: Dec 2002
Posts: 346
S
Fjord artisan
Offline
Fjord artisan
S
Joined: Dec 2002
Posts: 346
The mIRC-internal /ban command can resolve a users address for you if the internal address list has not stored it. To remove a type 4 ban on a specific nick:

/ban -r <nick> 4

See /help /ban for more information. For your code you should be using $$2 instead of %nick as I'd assume your bot operators would be using '!unban <nick>' and would not want to be restricted to whatever was (last) in %nick.

Hope that helps. smile

#73038 28/02/04 05:00 PM
G
Gamersad
Gamersad
G
Hurm i tryed that it still isn't seem to be working.


Link Copied to Clipboard