1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 09:43:13 +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
@@ -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);