summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-06-25 20:51:08 -0400
committerAdam <Adam@anope.org>2012-06-25 20:51:08 -0400
commit4b309b5044bf492a817098ee030fc5fb69650032 (patch)
tree4e093149210a6067dfefae53f77347fed36babab
parent2dec8e767a70def4b9b04a96ae4f75e4d1013038 (diff)
Fixed accidentally recursion in User::SendMessage from last commit
-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);
}