mirror of
https://github.com/anope/anope.git
synced 2026-06-29 03:26:38 +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:
@@ -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);
|
||||
|
||||
|
||||
@@ -614,7 +614,7 @@ void inspircd_cmd_svsmode(User * u, int ac, char **av)
|
||||
Uid *ud = find_uid(s_NickServ);
|
||||
send_cmd(ud->uid, "MODE %s %s", u->nick, merge_args(ac, av));
|
||||
|
||||
if (strstr(av[0], "+r")) {
|
||||
if (strstr(av[0], "+r") && u->na) {
|
||||
send_cmd(TS6SID, "METADATA %s accountname :%s", u->uid, u->na->nc->display);
|
||||
} else if (strstr(av[0], "-r")) {
|
||||
send_cmd(TS6SID, "METADATA %s accountname :", u->uid);
|
||||
|
||||
+2
-1
@@ -8,9 +8,10 @@ VERSION_MAJOR="1"
|
||||
VERSION_MINOR="8"
|
||||
VERSION_PATCH="4"
|
||||
VERSION_EXTRA="-git"
|
||||
VERSION_BUILD="3016"
|
||||
VERSION_BUILD="3017"
|
||||
|
||||
# $Log$ # Changes since the 1.8.4 Release
|
||||
#Revision 3017 - Log out super admins when someone forces them to logout
|
||||
#Revision 3016 - Fixed a potential crash from receiving a very long FMODE from InspIRCd
|
||||
#Revision 3015 - Allow clearing of access lists while in XOP mode
|
||||
#Revision 3014 - Increased command buffer size. Insp 2.0 has a bigger appetite it seems..
|
||||
|
||||
Reference in New Issue
Block a user