summaryrefslogtreecommitdiff
path: root/src/modules/m_spy.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_spy.cpp')
-rw-r--r--src/modules/m_spy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_spy.cpp b/src/modules/m_spy.cpp
index de48284ba..7c91119b7 100644
--- a/src/modules/m_spy.cpp
+++ b/src/modules/m_spy.cpp
@@ -39,7 +39,7 @@ void spy_userlist(userrec *user, chanrec *c)
for (CUList::iterator i = ulist->begin(); i != ulist->end(); i++)
{
- size_t ptrlen = snprintf(ptr, MAXBUF, "%s%s ", c->GetPrefixChar(i->second), i->second->nick);
+ size_t ptrlen = snprintf(ptr, MAXBUF, "%s%s ", c->GetPrefixChar(i->first), i->first->nick);
curlen += ptrlen;
ptr += ptrlen;