diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-08 18:59:55 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-03-08 18:59:55 +0000 |
commit | 21cf60233cdee26118774a86ea612d1c5671ba7a (patch) | |
tree | 36313b7bbdc3adbb561c6f508fbf9fe716a17f48 /src/modules/m_spy.cpp | |
parent | b2f5fc1e32971532c9f302884007e645ea3c38ce (diff) |
Got rid of all that ugly char* cast crap (todo: change docs to reflect change)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3556 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_spy.cpp')
-rw-r--r-- | src/modules/m_spy.cpp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/modules/m_spy.cpp b/src/modules/m_spy.cpp index f23dfa917..c8250a75e 100644 --- a/src/modules/m_spy.cpp +++ b/src/modules/m_spy.cpp @@ -70,13 +70,11 @@ void spy_userlist(userrec *user,chanrec *c) snprintf(list,MAXBUF,"353 %s = %s :", user->nick, c->name); - std::map<char*,char*> *ulist= c->GetUsers(); - for (std::map<char*,char*>::iterator i = ulist->begin(); i != ulist->end(); i++) + CUList *ulist= c->GetUsers(); + for (CUList::iterator i = ulist->begin(); i != ulist->end(); i++) { - char* o = i->second; - userrec* otheruser = (userrec*)o; - strlcat(list,cmode(otheruser,c),MAXBUF); - strlcat(list,otheruser->nick,MAXBUF); + strlcat(list,cmode(i->second,c),MAXBUF); + strlcat(list,i->second->nick,MAXBUF); strlcat(list," ",MAXBUF); if (strlen(list)>(480-NICKMAX)) { |