qban { if ($1 ison $chan) { /mode # +b ~q: $+ $address($$1,2) } }
deqban { if ($1 ison $chan) { /mode # -b ~q: $+ $address($$1,2) } }
Cannot figure out how to get this to work in my bot
I have the rest of the script already written but this is stumping me
i thought like pushmode $chan +b ~q: $+ $host or something lol
pls help
doc/tcl-commands.doc wrote: pushmode <channel> <mode> [arg]
Description: sends out a channel mode change (ex: pushmode #lame +o
goober) through the bot's queuing system. All the mode changes will
be sent out at once (combined into one line as much as possible) after
the script finishes, or when 'flushmode' is called.
Returns: nothing
Module: irc
So basically, to add the ban "*!*@badhost" on channel "#mychannel", you'd do something like this:
Be aware that some of the ugly hacks in mirc-scripts are'nt nessecary (or available) in tcl (such as the "remove-space" token $+).
It would seem you're trying to add a ban such as this: "~q:*!*user@host", which would probably be something like this, depending on your code:
However When you just type !sban without any nick it will set +b ~q:*!*@* anyway i can stop that from happening.. Like make it not do anything if no nick is supplied ?
BIF wrote:However When you just type !sban without any nick it will set +b ~q:*!*@* anyway i can stop that from happening.. Like make it not do anything if no nick is supplied ?