diff options
author | Attila Molnar <attilamolnar@hush.com> | 2013-05-20 11:05:05 -0700 |
---|---|---|
committer | Attila Molnar <attilamolnar@hush.com> | 2013-05-20 11:05:05 -0700 |
commit | 991a6a429bd6abc70c0eac33bcca124b0600cc0f (patch) | |
tree | 73961818b96646cfbe0a0ff945a23db04edc4823 /src/modules/m_spanningtree | |
parent | 3ce33ee0e6bc0b8fbe2a564a37e02d2e56510b06 (diff) | |
parent | 4e40ee49bba3f7bab05a58516e2039351fb33069 (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.cpp | 8 |
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); |