From 2632def464aa1c695c6985a3dbd0302c6061f5fe Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 6 Oct 2006 09:18:26 +0000 Subject: Optimize some more git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5431 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_spy.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/modules') diff --git a/src/modules/m_spy.cpp b/src/modules/m_spy.cpp index b09a05833..86e7128d6 100644 --- a/src/modules/m_spy.cpp +++ b/src/modules/m_spy.cpp @@ -42,11 +42,6 @@ void spy_userlist(userrec *user, chanrec *c) CUList *ulist= c->GetUsers(); - /* Improvement by Brain - this doesnt change in value, so why was it inside - * the loop? - */ - bool has_user = c->HasUser(user); - 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); -- cgit v1.2.3