summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-05 11:54:40 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-05 11:54:40 +0000
commit6725061d066929143d38f8d32cf032d9968c39f4 (patch)
tree29cf7a8bb25a7be36423b50a0d6b63002c07339b
parent4be4ccdf2628423644d42531322bea913dfe0191 (diff)
Fix to prevent use of aliases before reigstering connection
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3092 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--src/modules/m_alias.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/modules/m_alias.cpp b/src/modules/m_alias.cpp
index f73fd74db..db3d75bae 100644
--- a/src/modules/m_alias.cpp
+++ b/src/modules/m_alias.cpp
@@ -92,8 +92,11 @@ class ModuleAlias : public Module
userrec *u = NULL;
irc::string c = command.c_str();
- /* If the command is valid, we dont want to know */
- if (validated)
+ /* If the command is valid, we dont want to know,
+ * and if theyre not registered yet, we dont want
+ * to know either
+ */
+ if ((validated) || (user->registered != 7))
return 0;
for (unsigned int i = 0; i < Aliases.size(); i++)