diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-28 16:49:49 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2007-08-28 16:49:49 +0000 |
commit | 45ee54f3d227a3d33621a8806051ccd76f4a029a (patch) | |
tree | dbe61715a0a573c1f75a55ec4a74aaf05e3ea7e8 /src/channels.cpp | |
parent | 90b72dfd91ace76c5e89f3e10c167a36f6234511 (diff) |
From RFC 2812, the funny = that i could never identify in NAMES reply: = means public, @ means secret and * means private.
Fixed in affected modules to display the proper character (will backport)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@7952 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/channels.cpp')
-rw-r--r-- | src/channels.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/channels.cpp b/src/channels.cpp index 4b5cb7fc3..5169fbf63 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -834,7 +834,7 @@ void chanrec::UserList(userrec *user, CUList *ulist) if (MOD_RESULT == 1) return; - dlen = curlen = snprintf(list,MAXBUF,"353 %s = %s :", user->nick, this->name); + dlen = curlen = snprintf(list,MAXBUF,"353 %s %c %s :", user->nick, this->IsModeSet('s') ? '@' : this->IsModeSet('p') ? '*' : '=', this->name); int numusers = 0; char* ptr = list + dlen; @@ -876,7 +876,7 @@ void chanrec::UserList(userrec *user, CUList *ulist) user->WriteServ(std::string(list)); /* reset our lengths */ - dlen = curlen = snprintf(list,MAXBUF,"353 %s = %s :", user->nick, this->name); + dlen = curlen = snprintf(list,MAXBUF,"353 %s %c %s :", user->nick, this->IsModeSet('s') ? '@' : this->IsModeSet('p') ? '*' : '=', this->name); ptr = list + dlen; ptrlen = 0; |