summaryrefslogtreecommitdiff
path: root/src/users.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/users.cpp')
-rw-r--r--src/users.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/users.cpp b/src/users.cpp
index 18bafd032..338dc343f 100644
--- a/src/users.cpp
+++ b/src/users.cpp
@@ -234,8 +234,7 @@ void User::SendMessage(const BotInfo *source, const char *fmt, ...)
va_start(args, fmt);
vsnprintf(buf, BUFSIZE - 1, translated_message, args);
- Anope::string m = buf;
- this->SendMessage(source, buf);
+ this->SendMessage(source, Anope::string(buf));
va_end(args);
}