Fix crash if identify_service/identify_command were not specified in ircd.conf.

This commit is contained in:
Jilles Tjoelker 2010-04-18 13:54:03 +02:00
parent 2498a1b577
commit b96db1e3fe
1 changed files with 2 additions and 2 deletions

View File

@ -655,8 +655,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, '@');