diff options
| author | 2009-11-15 18:26:25 +0000 | |
|---|---|---|
| committer | 2009-11-15 18:26:25 +0000 | |
| commit | df37ab42f454e3a96d59a2a86eb76bcb4af0818a (patch) | |
| tree | 8e523c772ef0a2f19340ae80f5781766777f7a2a /src/modules/m_knock.cpp | |
| parent | Get rid of socklen_t parameter to Bind, we are using C++ here and can do it o... (diff) | |
Hide channel mode structures
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@12132 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_knock.cpp')
| -rw-r--r-- | src/modules/m_knock.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/m_knock.cpp b/src/modules/m_knock.cpp index 3e794547e..04b843c86 100644 --- a/src/modules/m_knock.cpp +++ b/src/modules/m_knock.cpp @@ -49,7 +49,7 @@ class CommandKnock : public Command return CMD_FAILURE; } - if (!c->modes[CM_INVITEONLY]) + if (!c->IsModeSet('i')) { user->WriteNumeric(480, "%s :Can't KNOCK on %s, channel is not invite only so knocking is pointless!",user->nick.c_str(), c->name.c_str()); return CMD_FAILURE; |
