From 0be62a998b8a97a0733ff9860f713128c620caae Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 2 Sep 2011 00:02:49 +0300 Subject: Add support for leave command in guild bot integration. --- src/guildmanager.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'src') 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(); } -- cgit v1.2.3-70-g09d2