From 76e83f613bb162b50f31eeb7513495c38a5f8993 Mon Sep 17 00:00:00 2001 From: cyberbotx Date: Mon, 13 Apr 2009 19:07:49 +0000 Subject: [PATCH] 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 --- src/ircd.c | 2 +- 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); }