From 219afd10cf1dc8f7e75273706c2de3a06305e637 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 10 Feb 2018 01:25:51 +0300 Subject: Add basic support for clans. --- src/progs/manaplus/actions/chat.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/progs/manaplus/actions/chat.cpp') diff --git a/src/progs/manaplus/actions/chat.cpp b/src/progs/manaplus/actions/chat.cpp index 0644f9c02..bbfefc826 100644 --- a/src/progs/manaplus/actions/chat.cpp +++ b/src/progs/manaplus/actions/chat.cpp @@ -36,6 +36,7 @@ #include "net/charserverhandler.h" #include "net/chathandler.h" +#include "net/clanhandler.h" #include "net/guildhandler.h" #include "net/net.h" #include "net/partyhandler.h" @@ -74,6 +75,12 @@ static void outString(ChatTab *const tab, switch (tab->getType()) { + case ChatTabType::CLAN: + { + if (clanHandler != nullptr) + clanHandler->chat(str); + break; + } case ChatTabType::PARTY: { if (partyHandler != nullptr) -- cgit v1.2.3-60-g2f50