mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-26 02:42:16 -05:00
/mode can be used when no channel is selected
This commit is contained in:
parent
ffaba5e25d
commit
8f6f7c7c74
@ -41,10 +41,6 @@ public class ModeHandler extends BaseHandler
|
||||
@Override
|
||||
public void execute(String[] params, Server server, Conversation conversation, IRCService service) throws CommandException
|
||||
{
|
||||
if (conversation.getType() != Conversation.TYPE_CHANNEL) {
|
||||
throw new CommandException("Only usable from within a channel");
|
||||
}
|
||||
|
||||
if (params.length > 2) {
|
||||
String modes = BaseHandler.mergeParams(params, 2);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user