multiple commands in the userlist buttons editor

Asked by Hesham

hello.. i was trying to add a /kick %c %s Bad nick.. Change it ... then ban the nickname only ! on the userlist buttons editor.. i need to make multiple commands " in the same time" how can i do that???

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu xchat Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Antonio Pérez-Aranda Alcaide (ant30) said :
#1

Check this:

/kick %c nick1,nick2,nick3

I use separates with ','

Revision history for this message
Hesham (hesham-kamar) said :
#2

No sir.. I wan to add a commmand that will kick someone for a reason.. then bans his nick
ex.
just by clicking on the button he will be kicked for bad nickname with message " bad nick detected"
then will set a ban on his nickname! nick!*@*

so i need a command seperator.. so i make two commands kick %c %s bad nick <sep> mode %c +b %s

thank you for your concern

Revision history for this message
Antonio Pérez-Aranda Alcaide (ant30) said :
#3

You need a script.
I have made some scripts on python for xchat. One of these is for "auto" kick a person with say a forbidden word .
Then, you can use the script and parser your commands. Ask me if you need more info.

Revision history for this message
Raúl Soriano (gatoloko) said :
#4

You can use the "User commands" option from "Configuration --> Advanced" menu. You can add a command like "myban" multiple time, and put one command in echat of them. something like:

myban kick %c %s Bad nick.. Change it ...
myban ban %s!*@*

This way when you type /myban both commands are scheduled. You can add userlist buttons too, and link one of them with this command.

Can you help with this problem?

Provide an answer of your own, or ask Hesham for more information if necessary.

To post a message you must log in.