diff options
Diffstat (limited to 'bouncer/mobileclient.cpp')
-rw-r--r-- | bouncer/mobileclient.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bouncer/mobileclient.cpp b/bouncer/mobileclient.cpp index 0dbc35a..fc1836d 100644 --- a/bouncer/mobileclient.cpp +++ b/bouncer/mobileclient.cpp @@ -70,6 +70,12 @@ void MobileClient::handleDebugCommand(char *line, int size) { } else if (strcmp(line, "addsrv") == 0) { IRCServer *srv = new IRCServer(bouncer); bouncer->registerServer(srv); + } else if (strcmp(line, "save") == 0) { + bouncer->saveConfig(); + + Buffer pkt; + pkt.writeStr("Bouncer configuration saved."); + sendPacket(Packet::B2C_STATUS, pkt); } } |