How can I get a command to work for users not in the bot's local database? For example:
register.registerCommandPlugin(this, "spam", 1, false, "", "spam", "Kicks an account for spamming", null);
out.sendText("/kick " + args[0] + " Spamming");
Works for me, but not for someone who isn't in the database. I tried <null> in there too, but no result :(
Try making a new flag that isn't being used, and give "*" that flag. That's the easy/cheater way that I'd do it.
Worked, using a different method since I didn't fully understand in the above post. My temporary solution is starting to show how temporary it is T_T
Quote from: iago on April 10, 2008, 08:21:17 PM
Try making a new flag that isn't being used, and give "*" that flag. That's the easy/cheater way that I'd do it.
Can you explain it please? I am kind of confused :o
Set the flags for the command to something like Q
And then jsut do /add * Q
That was my temporary alternative solution lol
And 0/-1 dosent work?
What's wrong with the temporary solution? That's how I've always done it.
restarting the bot desynchronizes the list (people may have joined or left since)
That doesn't sound like it makes sense to me.
Are you doing this?
.setuser * 'Q'
Then requiring the command to have 'Q'?
I've resolved this. Thanks.
Yes, I was doing that.