diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-09-02 00:02:49 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-09-02 00:02:49 +0300 |
commit | 0be62a998b8a97a0733ff9860f713128c620caae (patch) | |
tree | 10e28249a645d8dbc15b5255ce3ca5f04ec80b92 /src | |
parent | a4c4a2c804f34b64aefce1847ba837a41b849fea (diff) | |
download | mv-0be62a998b8a97a0733ff9860f713128c620caae.tar.gz mv-0be62a998b8a97a0733ff9860f713128c620caae.tar.bz2 mv-0be62a998b8a97a0733ff9860f713128c620caae.tar.xz mv-0be62a998b8a97a0733ff9860f713128c620caae.zip |
Add support for leave command in guild bot integration.
Diffstat (limited to 'src')
-rw-r--r-- | src/guildmanager.cpp | 7 |
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(); } |