summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-10 01:00:22 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-10 01:00:22 +0000
commit395511bd073e8751fb5c0d2e9c8426de055a014f (patch)
tree369b02b53d1144d21c11a0dea10e04461c281af0 /src
parent6e1f6f7a30d4f59e69b4c386e7897c9f9d16f565 (diff)
Tweaks here so we can avoid data copies in uhnames
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6940 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/channels.cpp1
-rw-r--r--src/modules/m_namesx.cpp1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 93f0f790c..d640af1d8 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());
+ i->second = i->first->nick;
curlen += ptrlen;
ptr += ptrlen;
diff --git a/src/modules/m_namesx.cpp b/src/modules/m_namesx.cpp
index 8d2be49e5..a96ff1991 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());
+ i->second = i->first->nick;
curlen += ptrlen;
ptr += ptrlen;
numusers++;