diff options
Diffstat (limited to 'src/courtroom.cpp')
| -rw-r--r-- | src/courtroom.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/courtroom.cpp b/src/courtroom.cpp index 1eaa747..a2dca24 100644 --- a/src/courtroom.cpp +++ b/src/courtroom.cpp @@ -5118,6 +5118,19 @@ void Courtroom::on_ooc_return_pressed() ui_ooc_chat_message->clear(); return; } + // Only works on CSDWASASH. + else if (ooc_message.startsWith("/auth")) + { + QStringList command = ooc_message.split(" ", Qt::SkipEmptyParts); + if (command.size() != 2) + { + append_server_chatmessage("CLIENT", "Usage: /auth <username>", "1"); + return; + } + start_auth_flow(ao_app, command[1]); + ui_ooc_chat_message->clear(); + return; + } QStringList packet_contents; packet_contents.append(ui_ooc_chat_name->text()); |
