1
0
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:
rburchell
2009-02-13 16:48:23 +00:00
parent a7855fd0ba
commit 7633d9e248
+1 -1
View File
@@ -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];