summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/modules/m_dccallow.cpp6
1 files changed, 3 insertions, 3 deletions
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;
}
}