X-Git-Url: http://git.pk910.de/?a=blobdiff_plain;f=tools.c;h=3701358b3f32f28c7ecdfbfe08cab7414b90d2b8;hb=138e908d71410ae65ae363340d124b19a6fbd666;hp=93fbd323e2c42d56e6c4455711e6628a6034f326;hpb=5a3c45f1d0ea75d7e3bcdf91340ba6b8a538731d;p=NeonServV5.git diff --git a/tools.c b/tools.c index 93fbd32..3701358 100644 --- a/tools.c +++ b/tools.c @@ -436,6 +436,9 @@ char* make_banmask(char *input, char* buffer) { else nick = input; } + if(*nick == '\0') nick = NULL; + if(*ident == '\0') ident = NULL; + if(*host == '\0') host = NULL; sprintf(buffer, "%s!%s@%s", (nick ? nick : "*"), (ident ? ident : "*"), (host ? host : "*")); return buffer; }