summaryrefslogtreecommitdiff
path: root/src/users.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-06 20:09:48 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-01-06 20:09:48 +0000
commit9124a3be5347317918d9fb95991bdb2dd3818c99 (patch)
tree59b726e2470328f56996a96b94fbc57e622c1edb /src/users.c
parentb462814760cb7c0830072275acc97291a9fb905b (diff)
Fixed windows build and cleaned up a few small things
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2736 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/users.c')
-rw-r--r--src/users.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/users.c b/src/users.c
index 54cc6b22b..a0df6c5be 100644
--- a/src/users.c
+++ b/src/users.c
@@ -576,14 +576,14 @@ void User::RemoveMode(BotInfo *bi, char ModeChar)
* @param bi The client setting the mode
* @param modes The modes
*/
-void User::SetModes(BotInfo *bi, const std::string &modes, ...)
+void User::SetModes(BotInfo *bi, const char *modes, ...)
{
char buf[BUFSIZE] = "";
va_list args;
std::string modebuf, sbuf;
int add = -1;
- va_start(args, modes.c_str());
- vsnprintf(buf, BUFSIZE - 1, modes.c_str(), args);
+ va_start(args, modes);
+ vsnprintf(buf, BUFSIZE - 1, modes, args);
va_end(args);
spacesepstream sep(buf);