diff options
| author | Adam <Adam@anope.org> | 2010-07-27 23:56:26 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-07-27 23:56:26 -0400 |
| commit | d034a9c36a6ae499bb0c039d0ffd44e698dd4085 (patch) | |
| tree | 8246116bd11f549c30cb2a7bcfd55cd8b59eec03 /src/protocol | |
| parent | 49064ec67dfe684abb075305ce9433ed801eab68 (diff) | |
Log out superadmins when someone forces them to logout, and fixed crash when using /os umode +r on an unregistered user when using inspircd12
Diffstat (limited to 'src/protocol')
| -rw-r--r-- | src/protocol/inspircd12.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/protocol/inspircd12.c b/src/protocol/inspircd12.c index b6a92231a..e5722c236 100644 --- a/src/protocol/inspircd12.c +++ b/src/protocol/inspircd12.c @@ -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); |
