From f2078a777e1032d7bd237b165bc93404fe6c7734 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 3 Apr 2008 22:50:36 +0000 Subject: Whoops, allow numeric 353 (names list) to be overridden by OnNumeric if we want to git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@9295 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/channels.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/channels.cpp b/src/channels.cpp index 6782ffc5b..52e8faca9 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -856,7 +856,7 @@ void Channel::UserList(User *user, CUList *ulist) } } - dlen = curlen = snprintf(list,MAXBUF,"353 %s %c %s :", user->nick, this->IsModeSet('s') ? '@' : this->IsModeSet('p') ? '*' : '=', this->name); + dlen = curlen = snprintf(list,MAXBUF,"%s %c %s :", user->nick, this->IsModeSet('s') ? '@' : this->IsModeSet('p') ? '*' : '=', this->name); int numusers = 0; char* ptr = list + dlen; @@ -903,7 +903,7 @@ void Channel::UserList(User *user, CUList *ulist) user->WriteServ(std::string(list)); /* reset our lengths */ - dlen = curlen = snprintf(list,MAXBUF,"353 %s %c %s :", user->nick, this->IsModeSet('s') ? '@' : this->IsModeSet('p') ? '*' : '=', this->name); + dlen = curlen = snprintf(list,MAXBUF,"%s %c %s :", user->nick, this->IsModeSet('s') ? '@' : this->IsModeSet('p') ? '*' : '=', this->name); ptr = list + dlen; ptrlen = 0; @@ -921,7 +921,7 @@ void Channel::UserList(User *user, CUList *ulist) /* if whats left in the list isnt empty, send it */ if (numusers) { - user->WriteServ(std::string(list)); + user->WriteNumeric(353,std::string(list)); } user->WriteNumeric(366, "%s %s :End of /NAMES list.", user->nick, this->name); -- cgit v1.2.3