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:
parent
ffaba5e25d
commit
8f6f7c7c74
@ -41,10 +41,6 @@ public class ModeHandler extends BaseHandler
|
|||||||
@Override
|
@Override
|
||||||
public void execute(String[] params, Server server, Conversation conversation, IRCService service) throws CommandException
|
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) {
|
if (params.length > 2) {
|
||||||
String modes = BaseHandler.mergeParams(params, 2);
|
String modes = BaseHandler.mergeParams(params, 2);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user