summaryrefslogtreecommitdiff
path: root/bouncer/mobileclient.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--bouncer/mobileclient.cpp6
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);
}
}