aboutsummaryrefslogtreecommitdiffstats
path: root/src/message.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-07-28 12:00:25 +0000
committerGravatar brain2006-07-28 12:00:25 +0000
commit95840640cb374a0845c866bd1ad56a04dd833081 (patch)
tree17fb64980c11b26d33967f58064f3579d2a1ca4d /src/message.cpp
parentChange some if fd > -1 to IS_LOCAL macro (diff)
downloadinspircd++-95840640cb374a0845c866bd1ad56a04dd833081.tar.gz
inspircd++-95840640cb374a0845c866bd1ad56a04dd833081.tar.bz2
inspircd++-95840640cb374a0845c866bd1ad56a04dd833081.zip
Change all references to voodoo numbers (7, 3 etc) to the new bitwise constants for user->registered
Change a lot of user->fd > -1 to use the IS_LOCAL() macro git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4569 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/message.cpp')
-rw-r--r--src/message.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/message.cpp b/src/message.cpp
index a3ca865bf..23d29bd41 100644
--- a/src/message.cpp
+++ b/src/message.cpp
@@ -63,7 +63,7 @@ extern ServerConfig* Config;
int common_channels(userrec *u, userrec *u2)
{
/* TODO: We need to get rid of this arbitary '7' and make bitmask enums for it */
- if ((!u) || (!u2) || (u->registered != 7) || (u2->registered != 7))
+ if ((!u) || (!u2) || (u->registered != REG_ALL) || (u2->registered != REG_ALL))
return 0;
/* Outer loop */