summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-16 13:27:26 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-16 13:27:26 +0000
commit778cac65effc6698cb158069e487ed9e2379fed1 (patch)
tree317be4a7e0b4ee87f3687598b05aa1445541c489 /src/modules
parent1fd1b98ced9474d3358dc10dfc18580aa5351ed7 (diff)
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
Diffstat (limited to 'src/modules')
-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;
}
}