summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2008-08-08 10:50:21 +0000
committerrob rob@31f1291d-b8d6-0310-a050-a5561fc1590b <rob rob@31f1291d-b8d6-0310-a050-a5561fc1590b@5417fbe8-f217-4b02-8779-1006273d7864>2008-08-08 10:50:21 +0000
commitb31121671cdb2c0c365d3c464138da76abbdc680 (patch)
tree27d2d1e2e3a8adf64cbdc62ad34fd64173b2094d /src
parent6d7d43f1c881da9569570f7527232ddda9ac4150 (diff)
Removed pointless checks for buf existing, as they always will for non pointers.
git-svn-id: svn://svn.anope.org/anope/trunk@1407 31f1291d-b8d6-0310-a050-a5561fc1590b git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1122 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/send.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/send.c b/src/send.c
index 77a93d013..6d57a9823 100644
--- a/src/send.c
+++ b/src/send.c
@@ -52,10 +52,6 @@ void vsend_cmd(const char *source, const char *fmt, va_list args)
if (fmt) {
vsnprintf(buf, BUFSIZE - 1, fmt, args);
- if (!buf) {
- return;
- }
-
if (source) {
sockprintf(servsock, ":%s %s\r\n", source, buf);
eventprintf(":%s %s", source, buf);
@@ -92,11 +88,6 @@ void notice_server(char *source, Server * s, char *fmt, ...)
va_start(args, fmt);
vsnprintf(buf, BUFSIZE - 1, fmt, args);
- if (!buf) {
- va_end(args);
- return;
- }
-
if (NSDefFlags & NI_MSG) {
anope_cmd_serv_privmsg(source, s->name, buf);
} else {
@@ -126,11 +117,6 @@ void notice_user(char *source, User * u, const char *fmt, ...)
va_start(args, fmt);
vsnprintf(buf, BUFSIZE - 1, fmt, args);
- if (!buf) {
- va_end(args);
- return;
- }
-
/* Send privmsg instead of notice if:
* - UsePrivmsg is enabled
* - The user is not registered and NSDefMsg is enabled
@@ -296,11 +282,6 @@ void notice(char *source, char *dest, const char *fmt, ...)
va_start(args, fmt);
vsnprintf(buf, BUFSIZE - 1, fmt, args);
- if (!buf) {
- va_end(args);
- return;
- }
-
if (NSDefFlags & NI_MSG) {
anope_cmd_privmsg2(source, dest, buf);
} else {
@@ -332,9 +313,6 @@ void privmsg(char *source, char *dest, const char *fmt, ...)
va_end(args);
}
- if (!buf) {
- return;
- }
anope_cmd_privmsg2(source, dest, buf);
}
@@ -358,9 +336,6 @@ void wallops(char *source, const char *fmt, ...)
vsnprintf(buf, BUFSIZE - 1, fmt, args);
va_end(args);
}
- if (!buf) {
- return;
- }
anope_cmd_global_legacy(source, buf);
}