summaryrefslogtreecommitdiff
path: root/src/modules/m_spanningtree
diff options
context:
space:
mode:
authorAttila Molnar <attilamolnar@hush.com>2013-05-20 11:05:05 -0700
committerAttila Molnar <attilamolnar@hush.com>2013-05-20 11:05:05 -0700
commit991a6a429bd6abc70c0eac33bcca124b0600cc0f (patch)
tree73961818b96646cfbe0a0ff945a23db04edc4823 /src/modules/m_spanningtree
parent3ce33ee0e6bc0b8fbe2a564a37e02d2e56510b06 (diff)
parent4e40ee49bba3f7bab05a58516e2039351fb33069 (diff)
Merge pull request #542 from ShutterQuick/inspircd+printfcleanup
Replaced all the individual vsnprintfing with a macro
Diffstat (limited to 'src/modules/m_spanningtree')
-rw-r--r--src/modules/m_spanningtree/main.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/modules/m_spanningtree/main.cpp b/src/modules/m_spanningtree/main.cpp
index 92d274679..244180b2f 100644
--- a/src/modules/m_spanningtree/main.cpp
+++ b/src/modules/m_spanningtree/main.cpp
@@ -380,12 +380,8 @@ ModResult ModuleSpanningTree::HandleVersion(const std::vector<std::string>& para
*/
void ModuleSpanningTree::RemoteMessage(User* user, const char* format, ...)
{
- char text[MAXBUF];
- va_list argsPtr;
-
- va_start(argsPtr, format);
- vsnprintf(text, MAXBUF, format, argsPtr);
- va_end(argsPtr);
+ std::string text;
+ VAFORMAT(text, format, format);
if (IS_LOCAL(user))
user->WriteNotice(text);