]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Comment what ive done, so that someone doesnt go 'oh thats a redundant data copy...
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 10 May 2007 01:01:42 +0000 (01:01 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Thu, 10 May 2007 01:01:42 +0000 (01:01 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6941 e03df62e-2008-0410-955e-edbf42e46eb7

src/channels.cpp
src/modules/m_namesx.cpp

index d640af1d826e1b1520af3cba22ce3e6e9545392b..e4b58a1a4853cd7b1a2d097c25358964537a8c8e 100644 (file)
@@ -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;
index a96ff19912a858543a3d1f7a7ed07674294ad161..dd2b32e7b7c02e9f81c8956a38ba27a81d2576e2 100644 (file)
@@ -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;