summaryrefslogtreecommitdiff
path: root/src/guildmanager.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-02-18 21:33:21 +0300
committerAndrei Karas <akaras@inbox.ru>2013-02-18 21:33:21 +0300
commit25907c03212110f10c910b0ef90a416dff450ca7 (patch)
treefa409f004887619041e19f06f289d5ecb1c89e59 /src/guildmanager.cpp
parent772daf48072915d598014c25a33ff3dc96e43bce (diff)
downloadmanaplus-25907c03212110f10c910b0ef90a416dff450ca7.tar.gz
manaplus-25907c03212110f10c910b0ef90a416dff450ca7.tar.bz2
manaplus-25907c03212110f10c910b0ef90a416dff450ca7.tar.xz
manaplus-25907c03212110f10c910b0ef90a416dff450ca7.zip
Add option to show/hide guild online messages.
Disabled by default.
Diffstat (limited to 'src/guildmanager.cpp')
-rw-r--r--src/guildmanager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/guildmanager.cpp b/src/guildmanager.cpp
index 7ec8ae95b..4359d2659 100644
--- a/src/guildmanager.cpp
+++ b/src/guildmanager.cpp
@@ -270,6 +270,8 @@ bool GuildManager::process(std::string msg)
m->setOnline(false);
guild->sort();
mRequest = false;
+ if (mTab)
+ mTab->showOnline(msg, false);
return true;
}
else if (!haveNick && findCutLast(msg, " is now Online."))
@@ -286,6 +288,8 @@ bool GuildManager::process(std::string msg)
m->setOnline(true);
guild->sort();
mRequest = false;
+ if (mTab)
+ mTab->showOnline(msg, true);
return true;
}
else if (findCutFirst(msg, "Welcome to the "))