projects
/
NeonServV5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9848d79
)
fixed make_banmask
author
pk910
<philipp@zoelle1.de>
Thu, 8 Sep 2011 23:37:43 +0000
(
01:37
+0200)
committer
pk910
<philipp@zoelle1.de>
Thu, 8 Sep 2011 23:42:04 +0000
(
01:42
+0200)
tools.c
patch
|
blob
|
history
diff --git
a/tools.c
b/tools.c
index 3701358b3f32f28c7ecdfbfe08cab7414b90d2b8..a6b6f531f88e8c7368773fa49ae0086258d47e63 100644
(file)
--- a/
tools.c
+++ b/
tools.c
@@
-436,9
+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;
+ if(
nick &&
*nick == '\0') nick = NULL;
+ if(
ident &&
*ident == '\0') ident = NULL;
+ if(
host &&
*host == '\0') host = NULL;
sprintf(buffer, "%s!%s@%s", (nick ? nick : "*"), (ident ? ident : "*"), (host ? host : "*"));
return buffer;
}