]> jfr.im git - irc/freenode/ircd-seven.git/commitdiff
Fix crash if identify_service/identify_command were not specified in ircd.conf.
authorJilles Tjoelker <redacted>
Sun, 18 Apr 2010 11:54:03 +0000 (13:54 +0200)
committerJilles Tjoelker <redacted>
Sun, 18 Apr 2010 11:54:03 +0000 (13:54 +0200)
src/s_user.c

index d23a1933503f92ae34b3911870326fcb87f6acfe..4782304e4446398a8b395236c14854590e8c7f98 100644 (file)
@@ -654,8 +654,8 @@ introduce_client(struct Client *client_p, struct Client *source_p, struct User *
 
        if(MyConnect(source_p) && source_p->localClient->passwd)
        {
-               if (ConfigFileEntry.identifyservice[0] != '\0' &&
-                               ConfigFileEntry.identifycommand[0] != '\0')
+               if (!EmptyString(ConfigFileEntry.identifyservice) &&
+                               !EmptyString(ConfigFileEntry.identifycommand))
                {
                        /* use user@server */
                        p = strchr(ConfigFileEntry.identifyservice, '@');