From a4dd4228c08fd1bf06ad0d6484c2ccb2526348d7 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 8 Sep 2006 13:37:30 +0000 Subject: 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 --- src/channels.cpp | 4 ++-- 1 file 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); -- cgit v1.2.3