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

Log out superadmins when someone forces them to logout, and fixed crash when using /os umode +r on an unregistered user when using inspircd12

This commit is contained in:
Adam
2010-07-27 23:56:26 -04:00
parent 49064ec67d
commit d034a9c36a
3 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ int do_logout(User * u)
common_svsmode(u2, ircd->modeonunreg, "1");
}
u->isSuperAdmin = 0; /* Dont let people logout and remain a SuperAdmin */
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->username, u->host, u2->nick);