summaryrefslogtreecommitdiff
path: root/src/account-server/serverhandler.cpp
diff options
context:
space:
mode:
authorGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-31 14:06:00 +0000
committerGuillaume Melquiond <guillaume.melquiond@gmail.com>2007-08-31 14:06:00 +0000
commit0c52964be1d7158bf6533011b4e08287608a6926 (patch)
treea909c5ea79ed82345baa34152ce892a400500194 /src/account-server/serverhandler.cpp
parent60f60de8aefeebd1de0bf6c940558902226d7747 (diff)
downloadmanaserv-0c52964be1d7158bf6533011b4e08287608a6926.tar.gz
manaserv-0c52964be1d7158bf6533011b4e08287608a6926.tar.bz2
manaserv-0c52964be1d7158bf6533011b4e08287608a6926.tar.xz
manaserv-0c52964be1d7158bf6533011b4e08287608a6926.zip
Implemented "ban" remote command.
Diffstat (limited to 'src/account-server/serverhandler.cpp')
-rw-r--r--src/account-server/serverhandler.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/account-server/serverhandler.cpp b/src/account-server/serverhandler.cpp
index 492bd16c..06c9f805 100644
--- a/src/account-server/serverhandler.cpp
+++ b/src/account-server/serverhandler.cpp
@@ -218,6 +218,13 @@ void ServerHandler::processMessage(NetComputer *comp, MessageIn &msg)
storage->setQuestVar(id, name, value);
} break;
+ case GAMSG_BAN_PLAYER:
+ {
+ int id = msg.readLong();
+ int duration = msg.readShort();
+ storage->banCharacter(id, duration);
+ } break;
+
#if 0
case GAMSG_GUILD_CREATE:
{