From 959c67db271b593d32db022841d0723654a8dd67 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 10 May 2007 01:01:42 +0000 Subject: Comment what ive done, so that someone doesnt go 'oh thats a redundant data copy, what muppet put that there' and take it out, giving everyone uhnames output that doesnt support it :P git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6941 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/channels.cpp | 1 + src/modules/m_namesx.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/src/channels.cpp b/src/channels.cpp index d640af1d8..e4b58a1a4 100644 --- a/src/channels.cpp +++ b/src/channels.cpp @@ -844,6 +844,7 @@ void chanrec::UserList(userrec *user, CUList *ulist) continue; size_t ptrlen = snprintf(ptr, MAXBUF, "%s%s ", this->GetPrefixChar(i->first), i->second.c_str()); + /* OnUserList can change this - reset it back to normal */ i->second = i->first->nick; curlen += ptrlen; diff --git a/src/modules/m_namesx.cpp b/src/modules/m_namesx.cpp index a96ff1991..dd2b32e7b 100644 --- a/src/modules/m_namesx.cpp +++ b/src/modules/m_namesx.cpp @@ -90,6 +90,7 @@ class ModuleNamesX : public Module continue; size_t ptrlen = snprintf(ptr, MAXBUF, "%s%s ", Ptr->GetAllPrefixChars(i->first), i->second.c_str()); + /* OnUserList can change this - reset it back to normal */ i->second = i->first->nick; curlen += ptrlen; ptr += ptrlen; -- cgit v1.2.3