summaryrefslogtreecommitdiff
path: root/src/commandhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/commandhandler.cpp')
-rw-r--r--src/commandhandler.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/commandhandler.cpp b/src/commandhandler.cpp
index 14c5434a..73e41554 100644
--- a/src/commandhandler.cpp
+++ b/src/commandhandler.cpp
@@ -142,8 +142,7 @@ void CommandHandler::handleAnnounce(const std::string &args)
#ifdef TMWSERV_SUPPORT
Net::ChatServer::announce(args);
#else
- MessageOut outMsg(mNetwork);
- outMsg.writeInt16(0x0099);
+ MessageOut outMsg(0x0099);
outMsg.writeInt16(args.length() + 4);
outMsg.writeString(args, args.length());
#endif
@@ -332,8 +331,7 @@ void CommandHandler::handleWho()
#ifdef TMWSERV_SUPPORT
//TODO
#else
- MessageOut outMsg(mNetwork);
- outMsg.writeInt16(0x00c1);
+ MessageOut outMsg(0x00c1);
#endif
}