diff options
author | Roderic Morris <roderic@ccs.neu.edu> | 2008-06-25 21:12:44 +0000 |
---|---|---|
committer | Roderic Morris <roderic@ccs.neu.edu> | 2008-06-25 21:12:44 +0000 |
commit | a34a4692200eaf5b3ec8a7de75699a46aefd8b98 (patch) | |
tree | d73f15d55e7f784e99d92672f9ccbe69d64d7e69 /src/net/chathandler.cpp | |
parent | a0b6e09737b7b416a38c08d8e1d6744a4cc12f7d (diff) | |
download | mana-a34a4692200eaf5b3ec8a7de75699a46aefd8b98.tar.gz mana-a34a4692200eaf5b3ec8a7de75699a46aefd8b98.tar.bz2 mana-a34a4692200eaf5b3ec8a7de75699a46aefd8b98.tar.xz mana-a34a4692200eaf5b3ec8a7de75699a46aefd8b98.zip |
handle topic changes and guild events
Diffstat (limited to 'src/net/chathandler.cpp')
-rw-r--r-- | src/net/chathandler.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/net/chathandler.cpp b/src/net/chathandler.cpp index ac91c553..ce4a91da 100644 --- a/src/net/chathandler.cpp +++ b/src/net/chathandler.cpp @@ -144,6 +144,8 @@ void ChatHandler::handleRegisterChannelResponse(MessageIn &msg) channelName, channelAnnouncement)); chatWindow->createNewChannelTab(channelName); + chatWindow->chatLog("Topic: " + channelAnnouncement, BY_CHANNEL, channelName); + } else { @@ -168,7 +170,7 @@ void ChatHandler::handleEnterChannelResponse(MessageIn &msg) Channel *channel = new Channel(channelId, channelName, announcement); channelManager->addChannel(channel); chatWindow->createNewChannelTab(channelName); - chatWindow->chatLog("Announcement: " + announcement, BY_CHANNEL, channelName); + chatWindow->chatLog("Topic: " + announcement, BY_CHANNEL, channelName); std::string user; chatWindow->chatLog("Players in this channel:", BY_CHANNEL, channelName); @@ -276,6 +278,10 @@ void ChatHandler::handleChannelEvent(MessageIn &msg) case CHAT_EVENT_LEAVING_PLAYER: line += " left the channel."; break; + + case CHAT_EVENT_TOPIC_CHANGE: + line = "Topic: " + line; + break; default: line = "Unknown channel event."; |