summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-08 13:37:30 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-08 13:37:30 +0000
commita4dd4228c08fd1bf06ad0d6484c2ccb2526348d7 (patch)
tree6eb8a1917b6998c1e1a1cfba77076be28a57d42b /src
parent78a41fc6e425c49a0a8845fecf75434e00f7afa6 (diff)
Explicitly call the std::string version of WriteServ in chanrec::UserList to prevent string format accidents with users who have halfop (oooops)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5159 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/channels.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index dab518844..732b253cc 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -852,7 +852,7 @@ void chanrec::UserList(userrec *user)
if (curlen > (480-NICKMAX))
{
/* list overflowed into multiple numerics */
- user->WriteServ(list);
+ user->WriteServ(std::string(list));
/* reset our lengths */
dlen = curlen = snprintf(list,MAXBUF,"353 %s = %s :", user->nick, this->name);
@@ -866,7 +866,7 @@ void chanrec::UserList(userrec *user)
/* if whats left in the list isnt empty, send it */
if (numusers)
{
- user->WriteServ(list);
+ user->WriteServ(std::string(list));
}
user->WriteServ("366 %s %s :End of /NAMES list.", user->nick, this->name);