summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/commands.cpp7
-rw-r--r--src/commands.h3
2 files changed, 10 insertions, 0 deletions
diff --git a/src/commands.cpp b/src/commands.cpp
index 8ebcfd5fd..c0f719054 100644
--- a/src/commands.cpp
+++ b/src/commands.cpp
@@ -1342,6 +1342,13 @@ impHandler0(uploadConfig)
"?xml");
}
+impHandler0(uploadServerConfig)
+{
+ uploadFile(_("Uploaded server config into:"),
+ serverConfig.getFileName(),
+ "?xml");
+}
+
impHandler0(uploadLog)
{
uploadFile(_("Uploaded log into:"),
diff --git a/src/commands.h b/src/commands.h
index 6c2101f42..e53d66559 100644
--- a/src/commands.h
+++ b/src/commands.h
@@ -131,6 +131,7 @@ namespace Commands
decHandler(talkRaw);
decHandler(talkPet);
decHandler(uploadConfig);
+ decHandler(uploadServerConfig);
decHandler(uploadLog);
void replaceVars(std::string &str);
@@ -230,6 +231,7 @@ enum
COMMAND_TALKRAW,
COMMAND_TALKPET,
COMMAND_UPLOADCONFIG,
+ COMMAND_UPLOADSERVERCONFIG,
COMMAND_UPLOADLOG,
COMMAND_HACK,
END_COMMANDS
@@ -329,6 +331,7 @@ static const CommandInfo commands[] =
{"talkraw", &Commands::talkRaw, -1, true},
{"talkpet", &Commands::talkPet, -1, true},
{"uploadconfig", &Commands::uploadConfig, -1, false},
+ {"uploadserverconfig", &Commands::uploadServerConfig, -1, false},
{"uploadlog", &Commands::uploadLog, -1, false},
{"hack", &Commands::hack, -1, true}
};