mirror of
https://github.com/moparisthebest/Yaaic
synced 2025-02-16 15:00:14 -05:00
Send unknown commands to the server
This commit is contained in:
parent
1b2461f8fe
commit
ffaba5e25d
@ -151,6 +151,12 @@ public class CommandParser
|
||||
}
|
||||
} else {
|
||||
// Unknown command
|
||||
if (params.length > 1) {
|
||||
// Send command to server
|
||||
service.getConnection(server.getId()).sendRawLineViaQueue(
|
||||
params[0].toUpperCase() + " " + BaseHandler.mergeParams(params)
|
||||
);
|
||||
} else {
|
||||
if (conversation != null) {
|
||||
Message message = new Message("Unknown command: " + type);
|
||||
message.setColor(Message.COLOR_RED);
|
||||
@ -163,4 +169,5 @@ public class CommandParser
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user