diff options
author | Peter Powell <petpow@saberuk.com> | 2013-05-18 17:18:12 +0100 |
---|---|---|
committer | Peter Powell <petpow@saberuk.com> | 2013-06-06 01:45:04 +0100 |
commit | 6f54bc95a483dfb7b6aaf0af02a1243d74e89f4c (patch) | |
tree | 3d9111ba971e75b26259fd38b0a5523de6038049 /src/modules/m_check.cpp | |
parent | bbeb5ea38686dfeb9537860770bbdb3bd2f9cd3f (diff) |
Use InspIRCd::Format instead of snprintf().
Diffstat (limited to 'src/modules/m_check.cpp')
-rw-r--r-- | src/modules/m_check.cpp | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index fda211cf8..734089c5b 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -194,12 +194,13 @@ class CommandCheck : public Command /* note that unlike /names, we do NOT check +i vs in the channel */ for (UserMembCIter i = ulist->begin(); i != ulist->end(); i++) { - char tmpbuf[MAXBUF]; /* - * Unlike Asuka, I define a clone as coming from the same host. --w00t - */ - snprintf(tmpbuf, MAXBUF, "%-3lu %s%s (%s@%s) %s ", ServerInstance->Users->GlobalCloneCount(i->first), targchan->GetAllPrefixChars(i->first), i->first->nick.c_str(), i->first->ident.c_str(), i->first->dhost.c_str(), i->first->fullname.c_str()); - user->SendText(checkstr + " member " + tmpbuf); + * Unlike Asuka, I define a clone as coming from the same host. --w00t + */ + user->SendText("%s member %-3lu %s%s (%s@%s) %s ", + checkstr.c_str(), ServerInstance->Users->GlobalCloneCount(i->first), + targchan->GetAllPrefixChars(i->first), i->first->nick.c_str(), + i->first->ident.c_str(), i->first->dhost.c_str(), i->first->fullname.c_str()); } // We know that the mode handler for bans is in the core and is derived from ListModeBase |