From a1514113093733b65e36224dad81f6867edcb93c Mon Sep 17 00:00:00 2001
From: Philipp Sehmisch <mana@crushnet.org>
Date: Mon, 27 Dec 2010 17:33:41 +0100
Subject: Transaction logging of various command, new transaction codes and
 style fix.

The @mute, @goto, @attribute and @announce commands now logs transactions
to the database.

Added new transaction codes to database. I've preliminarily added a lot
of codes for not yet supported commands so that we needn't do a database
update with every single commit which implements one.

Also using the equivalent "say" helper function in place of the
"GameState::sayTo" method in the command handler.

Reviewed-by: Kage
---
 src/sql/sqlite/createTables.sql | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)

(limited to 'src/sql/sqlite/createTables.sql')

diff --git a/src/sql/sqlite/createTables.sql b/src/sql/sqlite/createTables.sql
index 6ce5290..e279aec 100644
--- a/src/sql/sqlite/createTables.sql
+++ b/src/sql/sqlite/createTables.sql
@@ -441,3 +441,24 @@ INSERT INTO mana_transaction_codes VALUES ( 29, 'Trade money',              'Act
 INSERT INTO mana_transaction_codes VALUES ( 30, 'Trade items',              'Actions' );
 INSERT INTO mana_transaction_codes VALUES ( 31, 'Attribute increased',      'Character' );
 INSERT INTO mana_transaction_codes VALUES ( 32, 'Attribute decreased',      'Character' );
+INSERT INTO mana_transaction_codes VALUES ( 33, 'Command MUTE',             'Commands' );
+INSERT INTO mana_transaction_codes VALUES ( 34, 'Command EXP',              'Commands' );
+INSERT INTO mana_transaction_codes VALUES ( 35, 'Command INVISIBLE',        'Commands' );
+INSERT INTO mana_transaction_codes VALUES ( 36, 'Command COMBAT',           'Commands' );
+INSERT INTO mana_transaction_codes VALUES ( 37, 'Command ANNOUNCE',         'Commands' );
+INSERT INTO mana_transaction_codes VALUES ( 38, 'Command ANNOUNCE_LOCAL',   'Commands' );
+INSERT INTO mana_transaction_codes VALUES ( 39, 'Command KILL',             'Commands' );
+INSERT INTO mana_transaction_codes VALUES ( 40, 'Command FX',               'Commands' );
+INSERT INTO mana_transaction_codes VALUES ( 41, 'Command LOG',              'Commands' );
+INSERT INTO mana_transaction_codes VALUES ( 42, 'Command KILLMONSTER',      'Commands' );
+INSERT INTO mana_transaction_codes VALUES ( 43, 'Command GOTO',             'Commands' );
+INSERT INTO mana_transaction_codes VALUES ( 44, 'Command GONEXT',           'Commands' );
+INSERT INTO mana_transaction_codes VALUES ( 45, 'Command GOPREV',           'Commands' );
+INSERT INTO mana_transaction_codes VALUES ( 46, 'Command IPBAN',            'Commands' );
+INSERT INTO mana_transaction_codes VALUES ( 47, 'Command WIPE_ITEMS',       'Commands' );
+INSERT INTO mana_transaction_codes VALUES ( 48, 'Command WIPE_LEVEL',       'Commands' );
+INSERT INTO mana_transaction_codes VALUES ( 49, 'Command SHUTDOWN_THIS',    'Commands' );
+INSERT INTO mana_transaction_codes VALUES ( 50, 'Command SHUTDOWN_ALL',     'Commands' );
+INSERT INTO mana_transaction_codes VALUES ( 51, 'Command RESTART_THIS',     'Commands' );
+INSERT INTO mana_transaction_codes VALUES ( 52, 'Command RESTART_ALL',      'Commands' );
+INSERT INTO mana_transaction_codes VALUES ( 53, 'Command ATTRIBUTE',        'Commands' );
-- 
cgit 

