mirror of
https://github.com/anope/anope.git
synced 2026-06-29 11:56:38 +02:00
fixed segfault on /nickserv logout <nick>
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2351 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -43,7 +43,7 @@ class CommandNSLogout : public Command
|
||||
else
|
||||
notice_lang(s_NickServ, u, NICK_NOT_REGISTERED);
|
||||
}
|
||||
else if (nick && !u2->nc->IsServicesOper())
|
||||
else if (nick && u2->nc && !u2->nc->IsServicesOper())
|
||||
notice_lang(s_NickServ, u, NICK_LOGOUT_SERVICESADMIN, nick);
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user