diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-13 19:07:49 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-13 19:07:49 +0000 |
commit | 76e83f613bb162b50f31eeb7513495c38a5f8993 (patch) | |
tree | 199f3c5f961fb7334b2645c253b7d496da9bd838 /src | |
parent | 22b53ec9cd63d47ee481d45d476584496ba5a6a5 (diff) |
Remove 2 unneeded ternary operators, the result is the same with or without them, patch from Sergio.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2275 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/ircd.c | 2 | ||||
-rw-r--r-- | src/protocol.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ircd.c b/src/ircd.c index 26a36e259..13e1ed2dc 100644 --- a/src/ircd.c +++ b/src/ircd.c @@ -47,7 +47,7 @@ void anope_SendNumeric(const char *source, int numeric, const char *dest, const vsnprintf(buf, BUFSIZE - 1, fmt, args); va_end(args); } - ircdproto->SendNumeric(source, numeric, dest, *buf ? buf : NULL); + ircdproto->SendNumeric(source, numeric, dest, buf); } /** diff --git a/src/protocol.cpp b/src/protocol.cpp index bfd0f083a..2ad41c675 100644 --- a/src/protocol.cpp +++ b/src/protocol.cpp @@ -225,6 +225,6 @@ void IRCDProto::SendNumeric(const char *source, int numeric, const char *dest, c va_start(args, fmt); vsnprintf(buf, BUFSIZE - 1, fmt, args); va_end(args); - SendNumericInternal(source, numeric, dest, *buf ? buf : NULL); + SendNumericInternal(source, numeric, dest, buf); } |