1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 03:13:13 +02:00

Remove channel founder status from users who logout

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2363 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
adam-
2009-07-06 17:43:30 +00:00
parent d75238496b
commit 1d53afee3f
+11
View File
@@ -31,6 +31,7 @@ class CommandNSLogout : public Command
const char *param = params.size() > 1 ? params[1].c_str() : NULL;
User *u2;
NickAlias *na;
struct u_chaninfolist *ci, *ci2;
if (!u->nc->IsServicesOper() && nick)
this->OnSyntaxError(u);
@@ -63,6 +64,16 @@ class CommandNSLogout : public Command
u2->isSuperAdmin = 0; /* Dont let people logout and remain a SuperAdmin */
alog("%s: %s!%s@%s logged out nickname %s", s_NickServ, u->nick, u->GetIdent().c_str(), u->host, u2->nick);
/* Remove founder status from this user in all channels */
ci = u2->founder_chans;
while (ci)
{
ci2 = ci->next;
delete ci;
ci = ci2;
}
u2->founder_chans = NULL;
if (nick)
notice_lang(s_NickServ, u, NICK_LOGOUT_X_SUCCEEDED, nick);
else