0
0
Fork 0
mirror of https://github.com/matrix-construct/construct synced 2024-12-26 15:33:54 +01:00

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 406478d224
commit 0a01ecfa85

View 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, '@');