1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-04 16:35:05 -05:00

Send unknown commands to the server

This commit is contained in:
Sebastian Kaspari 2010-03-18 00:14:29 +01:00
parent 1b2461f8fe
commit ffaba5e25d

View File

@ -151,6 +151,12 @@ public class CommandParser
} }
} else { } else {
// Unknown command // 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) { if (conversation != null) {
Message message = new Message("Unknown command: " + type); Message message = new Message("Unknown command: " + type);
message.setColor(Message.COLOR_RED); message.setColor(Message.COLOR_RED);
@ -163,4 +169,5 @@ public class CommandParser
} }
} }
} }
}
} }