diff options
author | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-24 13:41:58 +0000 |
---|---|---|
committer | Eugenio Favalli <elvenprogrammer@gmail.com> | 2005-04-24 13:41:58 +0000 |
commit | 107209c0c0bc72e5a07056f37d211539d53016fe (patch) | |
tree | 15303b37aa79c4eb1c780a728359fcd27e4712e1 /src | |
parent | af947fb9a6fa85d403a9c041a8b46079a96072fa (diff) | |
download | mana-107209c0c0bc72e5a07056f37d211539d53016fe.tar.gz mana-107209c0c0bc72e5a07056f37d211539d53016fe.tar.bz2 mana-107209c0c0bc72e5a07056f37d211539d53016fe.tar.xz mana-107209c0c0bc72e5a07056f37d211539d53016fe.zip |
This should disable ban when using /commands
Diffstat (limited to 'src')
-rw-r--r-- | src/game.cpp | 4 | ||||
-rw-r--r-- | src/gui/chat.cpp | 6 |
2 files changed, 6 insertions, 4 deletions
diff --git a/src/game.cpp b/src/game.cpp index 79f9a013..ffc6ebd9 100644 --- a/src/game.cpp +++ b/src/game.cpp @@ -584,11 +584,11 @@ void do_parse() { } fclose(file); */ -//#ifdef __DEBUG +#ifdef __DEBUG FILE *file = fopen("./docs/packet.list", "a"); fprintf(file, "%x\n", RFIFOW(0)); fclose(file); -//#endif +#endif // Parse packet based on their id switch (id) { case SMSG_LOGIN_SUCCESS: diff --git a/src/gui/chat.cpp b/src/gui/chat.cpp index 6b8854ca..71cdd25a 100644 --- a/src/gui/chat.cpp +++ b/src/gui/chat.cpp @@ -211,11 +211,13 @@ char *ChatWindow::chat_send(std::string nick, std::string msg) // prepare command if (msg.substr(0, 1) == "/") { // global announcement - if(msg.substr(0, IS_ANNOUNCE_LENGTH) == IS_ANNOUNCE) { + /*if(msg.substr(0, IS_ANNOUNCE_LENGTH) == IS_ANNOUNCE) { msg.erase(0, IS_ANNOUNCE_LENGTH); packid = 0x0099; - } + }*/ // prepare ordinary message + chat_log("Sorry but /commands are not available yet", BY_PLAYER); + return ""; } else { // temporary hack to make messed-up-keyboard-ppl able to send GM commands |