From: pk910 Date: Thu, 21 Jul 2011 01:00:55 +0000 (+0200) Subject: fixed 0 fakehost if srvx tries to tell us that theres no fakehost X-Git-Tag: WGN5~12 X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=b5b5189a02dd7ff20e7bf7eed952a014a2a10edd fixed 0 fakehost if srvx tries to tell us that theres no fakehost --- diff --git a/ircd/m_relay.c b/ircd/m_relay.c index 7d8a6e1..8aa687e 100644 --- a/ircd/m_relay.c +++ b/ircd/m_relay.c @@ -39,7 +39,7 @@ static void loc_handler_LR(const char *num, char *parv[], signed int parc) { static void loc_handler_LA(const char *num, char *parv[], signed int parc) { if(num[0] != '!' || parc < 1) return; char *fakehost = NULL; - if (parc > 1 && parv[1] != "0") + if (parc > 1 && !strcmp(parv[1], "0")) // 0 = no fakehost fakehost=parv[1]; if(parc > 2)