From 226cf304fd320c598765e6258bfad45e8bc648e9 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 16 Oct 2006 16:32:52 +0000 Subject: 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 --- src/modules/m_dccallow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src') 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')) { -- cgit v1.2.3