summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-16 16:32:52 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-10-16 16:32:52 +0000
commit226cf304fd320c598765e6258bfad45e8bc648e9 (patch)
tree9b68456ddf5c2f75e6850235886d96cfbe5cb998 /src/modules
parenta6884342b0200d5233502015b62e8b31a0105924 (diff)
Always allow a user to dcc themselves
Only return CMD_SUCCESS when a user is added or deleted, theres no use in propogating HELP or LIST git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5483 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_dccallow.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp
index a3ddb2e41..d74945b62 100644
--- a/src/modules/m_dccallow.cpp
+++ b/src/modules/m_dccallow.cpp
@@ -183,7 +183,7 @@ class cmd_dccallow : public command_t
user->WriteServ("994 %s %s :Added %s to DCCALLOW list for this session", user->nick, user->nick, target->nick);
}
- return CMD_FAILURE;
+ return CMD_SUCCESS;
}
}
else
@@ -301,6 +301,10 @@ class ModuleDCCAllow : public Module
if (target_type == TYPE_USER)
{
userrec* u = (userrec*)dest;
+
+ /* Always allow a user to dcc themselves (although... why?) */
+ if (user == u)
+ return 0;
if ((text.length()) && (text[0] == '\1'))
{