X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=blobdiff_plain;f=src%2Fngircd%2Fparse.c;h=13a92ac250bf06962c9b2984eba70c679d9a9401;hp=d9b43cf092bea1dff69ece518a57137b31dfd6cc;hb=eb9929e82c735100a0b432f878f83fce091eb636;hpb=9811223fb882413645db38948ac05fa21ddd3514 diff --git a/src/ngircd/parse.c b/src/ngircd/parse.c index d9b43cf0..13a92ac2 100644 --- a/src/ngircd/parse.c +++ b/src/ngircd/parse.c @@ -1,6 +1,6 @@ /* * ngIRCd -- The Next Generation IRC Daemon - * Copyright (c)2001-2014 Alexander Barton (alex@barton.de) and Contributors. + * Copyright (c)2001-2015 Alexander Barton (alex@barton.de) and Contributors. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -461,10 +461,10 @@ Handle_Numeric(CLIENT *client, REQUEST *Req) } /* Determine source */ - if (! Req->prefix[0]) { - /* Oops, no prefix!? */ - Log(LOG_WARNING, "Got status code %s from \"%s\" without prefix!?", - Req->command, Client_ID(client)); + if (!Req->prefix) { + Log(LOG_WARNING, + "Got status code %s from \"%s\" without prefix!?", + Req->command, Client_ID(client)); return true; }