summaryrefslogtreecommitdiff
path: root/src/net/chatserver/chatserver.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2007-11-21 16:30:11 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2007-11-21 16:30:11 +0000
commita5e6a44b51d4269ed6812c9a9e0b6a293d959a4d (patch)
treef269a803b58b47082156dc74bb0d6e8e2dc6519e /src/net/chatserver/chatserver.cpp
parent1f6975d34e2c6fe8404fcbe13da406e624d94b68 (diff)
downloadmana-a5e6a44b51d4269ed6812c9a9e0b6a293d959a4d.tar.gz
mana-a5e6a44b51d4269ed6812c9a9e0b6a293d959a4d.tar.bz2
mana-a5e6a44b51d4269ed6812c9a9e0b6a293d959a4d.tar.xz
mana-a5e6a44b51d4269ed6812c9a9e0b6a293d959a4d.zip
Renamed {read,write}{Byte,Short,Long} to {read,write}{Int8,Int16,Int32}. This
is less confusing in 64-bit context and less conflicting with the 0.0 client.
Diffstat (limited to 'src/net/chatserver/chatserver.cpp')
-rw-r--r--src/net/chatserver/chatserver.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/net/chatserver/chatserver.cpp b/src/net/chatserver/chatserver.cpp
index f24e4cd5..93fdc828 100644
--- a/src/net/chatserver/chatserver.cpp
+++ b/src/net/chatserver/chatserver.cpp
@@ -55,7 +55,7 @@ void Net::ChatServer::chat(short channel, const std::string &text)
MessageOut msg(PCMSG_CHAT);
msg.writeString(text);
- msg.writeShort(channel);
+ msg.writeInt16(channel);
connection->send(msg);
}
@@ -86,7 +86,7 @@ void Net::ChatServer::registerChannel(const std::string &name,
{
MessageOut msg(PCMSG_REGISTER_CHANNEL);
- msg.writeByte(isPrivate);
+ msg.writeInt8(isPrivate);
msg.writeString(name);
msg.writeString(announcement);
msg.writeString(password);
@@ -98,7 +98,7 @@ void Net::ChatServer::unregisterChannel(short channel)
{
MessageOut msg(PCMSG_UNREGISTER_CHANNEL);
- msg.writeShort(channel);
+ msg.writeInt16(channel);
connection->send(msg);
}
@@ -117,7 +117,7 @@ void Net::ChatServer::quitChannel(short channel)
{
MessageOut msg(PCMSG_QUIT_CHANNEL);
- msg.writeShort(channel);
+ msg.writeInt16(channel);
connection->send(msg);
}