From 778cac65effc6698cb158069e487ed9e2379fed1 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 16 Oct 2006 13:27:26 +0000 Subject: you can't compare userrec::nick with ==, its a char[] buffer... git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5478 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_dccallow.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index 13a8884d8..6c50191e8 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -116,7 +116,7 @@ class cmd_dccallow : public command_t for (userlist::iterator j = ul.begin(); j != ul.end(); ++j) { userrec* u = (userrec*)(*j); - if (u->nick == user->nick) + if (u == user) { ul.erase(j); break; @@ -449,9 +449,9 @@ class ModuleDCCAllow : public Module for (userlist::iterator j = ul.begin(); j != ul.end(); ++j) { userrec* u = (userrec*)(*j); - if (u->nick == user->nick) + if (u == user) { - ul.erase(j); + ul.erase(j); break; } } -- cgit v1.2.3