diff options
| author | XTZGZoReX <none@none> | 2009-03-21 13:51:28 +0100 |
|---|---|---|
| committer | XTZGZoReX <none@none> | 2009-03-21 13:51:28 +0100 |
| commit | 55695eda786667a34d6c0ae59496d787dfba4b3e (patch) | |
| tree | 3d62e720455cef466b992a5055cfb115c6392403 /sql | |
| parent | bab99cedba0217e050708e4d8eb8868fb7596343 (diff) | |
* Implement ".server set closed on/off" command to allow/deny new connections to the world.
--HG--
branch : trunk
Diffstat (limited to 'sql')
| -rw-r--r-- | sql/updates/2064_world.sql | 7 | ||||
| -rw-r--r-- | sql/world.sql | 1 |
2 files changed, 8 insertions, 0 deletions
diff --git a/sql/updates/2064_world.sql b/sql/updates/2064_world.sql new file mode 100644 index 00000000000..02ac8a54632 --- /dev/null +++ b/sql/updates/2064_world.sql @@ -0,0 +1,7 @@ +DELETE FROM trinity_string WHERE entry IN(7523,7524); +INSERT INTO trinity_string VALUES +(7523,'WORLD: Denying connections.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL), +(7523,'WORLD: Accepting connections.',NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL); + +DELETE FROM command WHERE name IN('server set closed'); +INSERT INTO command VALUES ('server set closed', 3, 'Syntax: server set closed on/off\r\n\r\nSets whether the world accepts new client connectsions.'); diff --git a/sql/world.sql b/sql/world.sql index 9ab43e606bf..7ea191181f7 100644 --- a/sql/world.sql +++ b/sql/world.sql @@ -421,6 +421,7 @@ INSERT INTO `command` VALUES ('server motd',0,'Syntax: .server motd\r\n\r\nShow server Message of the day.'), ('server restart',3,'Syntax: .server restart #delay\r\n\r\nRestart the server after #delay seconds. Use #exist_code or 2 as program exist code.'), ('server restart cancel',3,'Syntax: .server restart cancel\r\n\r\nCancel the restart/shutdown timer if any.'), +('server set closed',3,'Syntax: server set closed on/off\r\n\r\nSets whether the world accepts new client connectsions.'), ('server set loglevel',4,'Syntax: .server set loglevel #level\r\n\r\nSet server log level (0 - errors only, 1 - basic, 2 - detail, 3 - debug).'), ('server set motd',3,'Syntax: .server set motd $MOTD\r\n\r\nSet server Message of the day.'), ('server shutdown',3,'Syntax: .server shutdown #delay [#exist_code]\r\n\r\nShut the server down after #delay seconds. Use #exist_code or 0 as program exist code.'), |
