1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-29 12:22:21 -05:00

/mode can be used when no channel is selected

This commit is contained in:
Sebastian Kaspari 2010-03-18 00:25:29 +01:00
parent ffaba5e25d
commit 8f6f7c7c74

View File

@ -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);