summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-09-02 00:02:49 +0300
committerAndrei Karas <akaras@inbox.ru>2011-09-02 00:02:49 +0300
commit0be62a998b8a97a0733ff9860f713128c620caae (patch)
tree10e28249a645d8dbc15b5255ce3ca5f04ec80b92 /src
parenta4c4a2c804f34b64aefce1847ba837a41b849fea (diff)
downloadplus-0be62a998b8a97a0733ff9860f713128c620caae.tar.gz
plus-0be62a998b8a97a0733ff9860f713128c620caae.tar.bz2
plus-0be62a998b8a97a0733ff9860f713128c620caae.tar.xz
plus-0be62a998b8a97a0733ff9860f713128c620caae.zip
Add support for leave command in guild bot integration.
Diffstat (limited to 'src')
-rw-r--r--src/guildmanager.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/guildmanager.cpp b/src/guildmanager.cpp
index 529881c39..1a8d5b433 100644
--- a/src/guildmanager.cpp
+++ b/src/guildmanager.cpp
@@ -337,8 +337,8 @@ bool GuildManager::process(std::string msg)
socialWindow->showGuildInvite(msg, 1, "");
return true;
}
- else if (!haveNick && findCutLast(msg,
- " has been removed from the Guild."))
+ else if (!haveNick && (findCutLast(msg, " has been removed "
+ "from the Guild.") || findCutLast(msg," has left the Guild.")))
{
Guild *guild = createGuild();
if (!guild)
@@ -364,7 +364,8 @@ bool GuildManager::process(std::string msg)
guild->removeMember(msg);
return true;
}
- else if (msg == "You have been removed from the Guild")
+ else if (msg == "You have been removed from the Guild"
+ || msg == "You have left the Guild")
{
return afterRemove();
}