mirror of
https://github.com/anope/anope.git
synced 2026-06-27 01:56:38 +02:00
Fix segfault, noted by DukePyrolator. Thanks!
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2038 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+1
-1
@@ -312,7 +312,7 @@ const char *getstring(NickAlias *na, int index)
|
||||
int langidx = NSDefLanguage;
|
||||
|
||||
// If they are registered (na->nc), and NOT forbidden
|
||||
if (na->nc && !(na->status & NS_FORBIDDEN))
|
||||
if (na && na->nc && !(na->status & NS_FORBIDDEN))
|
||||
langidx = na->nc->language; // set language to their nickcore's language
|
||||
|
||||
return langtexts[langidx][index];
|
||||
|
||||
Reference in New Issue
Block a user