mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-11 11:44:59 -05:00
I18N: DevoiceHandler#
This commit is contained in:
parent
ba16f15079
commit
25cfb5a980
@ -43,13 +43,13 @@ public class DevoiceHandler extends BaseHandler
|
||||
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");
|
||||
throw new CommandException(service.getString(R.string.only_usable_from_channel));
|
||||
}
|
||||
|
||||
if (params.length == 2) {
|
||||
service.getConnection(server.getId()).deVoice(conversation.getName(), params[1]);
|
||||
} else {
|
||||
throw new CommandException("Invalid number of params");
|
||||
throw new CommandException(service.getString(R.string.invalid_number_of_params));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user