From: pk910 Date: Sat, 23 Jul 2011 05:56:27 +0000 (+0200) Subject: fixed 0 fakehost (set no fakehost) X-Git-Tag: WGN5~9 X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=2d18756ab035feea22e00b691e713ab1c2e67b2f;ds=sidebyside fixed 0 fakehost (set no fakehost) --- diff --git a/ircd/m_relay.c b/ircd/m_relay.c index 8aa687e..209d65a 100644 --- a/ircd/m_relay.c +++ b/ircd/m_relay.c @@ -39,9 +39,9 @@ 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 && !strcmp(parv[1], "0")) // 0 = no fakehost + if (parc > 1 && strcmp(parv[1], "0") != 0) // 0 = no fakehost fakehost=parv[1]; - + if(parc > 2) auth_loc_reply(&num[3], parv[0], fakehost, &parv[2] , parc - 2); else if(parc > 1)