diff options
author | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-03-27 22:30:38 +0200 |
---|---|---|
committer | Thorbjørn Lindeijer <thorbjorn@lindeijer.nl> | 2011-04-02 20:19:37 +0200 |
commit | f9e40669e0f34ac72e78ba38b3717340bc4ede82 (patch) | |
tree | a423292fa9f6344e14c5d719417671dfa9c2592b /src/chat-server/guildhandler.cpp | |
parent | c013d7ba8cb97262d318fe30e1ef4da1aea19b82 (diff) | |
download | manaserv-f9e40669e0f34ac72e78ba38b3717340bc4ede82.tar.gz manaserv-f9e40669e0f34ac72e78ba38b3717340bc4ede82.tar.bz2 manaserv-f9e40669e0f34ac72e78ba38b3717340bc4ede82.tar.xz manaserv-f9e40669e0f34ac72e78ba38b3717340bc4ede82.zip |
Some ChatHandler cleanups
* Removed a lot of pointless documentation that was mainly repeating the
function name and otherwise just filling up space.
* Synced a few method names to the names of the messages that they were
handling.
* Removed an unimplemented method (sendPartyMemberInfo)
Reviewed-by: Jared Adams
Diffstat (limited to 'src/chat-server/guildhandler.cpp')
-rw-r--r-- | src/chat-server/guildhandler.cpp | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/src/chat-server/guildhandler.cpp b/src/chat-server/guildhandler.cpp index 5e2b6d6f..110727cf 100644 --- a/src/chat-server/guildhandler.cpp +++ b/src/chat-server/guildhandler.cpp @@ -132,8 +132,7 @@ void ChatHandler::sendGuildListUpdate(const std::string &guildName, } } -void ChatHandler::handleGuildCreation(ChatClient &client, - MessageIn &msg) +void ChatHandler::handleGuildCreate(ChatClient &client, MessageIn &msg) { MessageOut reply(CPMSG_GUILD_CREATE_RESPONSE); @@ -168,8 +167,7 @@ void ChatHandler::handleGuildCreation(ChatClient &client, client.send(reply); } -void ChatHandler::handleGuildInvitation(ChatClient &client, - MessageIn &msg) +void ChatHandler::handleGuildInvite(ChatClient &client, MessageIn &msg) { MessageOut reply(CPMSG_GUILD_INVITE_RESPONSE); MessageOut invite(CPMSG_GUILD_INVITED); @@ -256,8 +254,7 @@ void ChatHandler::handleGuildAcceptInvite(ChatClient &client, client.send(reply); } -void ChatHandler::handleGuildRetrieveMembers(ChatClient &client, - MessageIn &msg) +void ChatHandler::handleGuildGetMembers(ChatClient &client, MessageIn &msg) { MessageOut reply(CPMSG_GUILD_GET_MEMBERS_RESPONSE); short guildId = msg.readInt16(); @@ -318,7 +315,7 @@ void ChatHandler::handleGuildMemberLevelChange(ChatClient &client, client.send(reply); } -void ChatHandler::handleGuildMemberKick(ChatClient &client, MessageIn &msg) +void ChatHandler::handleGuildKickMember(ChatClient &client, MessageIn &msg) { MessageOut reply(CPMSG_GUILD_KICK_MEMBER_RESPONSE); short guildId = msg.readInt16(); |