aboutsummaryrefslogtreecommitdiffstats
path: root/src/channels.cpp
diff options
context:
space:
mode:
authorGravatar attilamolnar2013-06-18 19:10:07 +0200
committerGravatar attilamolnar2013-07-19 19:40:04 +0200
commitfd1d19d6345943ecdb5ce4ef947f9b3c5c8bca86 (patch)
tree20ce1866b482808a85b34c7c09e53c3159617bc0 /src/channels.cpp
parentMove SetNoticeMask(), FormatNoticeMasks() and ProcessNoticeMasks() from the U... (diff)
downloadinspircd++-fd1d19d6345943ecdb5ce4ef947f9b3c5c8bca86.tar.gz
inspircd++-fd1d19d6345943ecdb5ce4ef947f9b3c5c8bca86.tar.bz2
inspircd++-fd1d19d6345943ecdb5ce4ef947f9b3c5c8bca86.zip
Replace hardcoded mode letters, part 3
This changes most remaining User::IsModeSet() calls to use ModeReferences for modes that were created by other modules or the core
Diffstat (limited to 'src/channels.cpp')
-rw-r--r--src/channels.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 505ef479a..e9e2a3020 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -36,6 +36,7 @@ namespace
ChanModeReference limitmode(NULL, "limit");
ChanModeReference secretmode(NULL, "secret");
ChanModeReference privatemode(NULL, "private");
+ UserModeReference invisiblemode(NULL, "invisible");
}
Channel::Channel(const std::string &cname, time_t ts)
@@ -683,7 +684,7 @@ void Channel::UserList(User *user)
{
if (i->first->quitting)
continue;
- if ((!has_user) && (i->first->IsModeSet('i')))
+ if ((!has_user) && (i->first->IsModeSet(invisiblemode)))
{
/*
* user is +i, and source not on the channel, does not show