diff options
| author | 2008-10-02 22:27:03 +0000 | |
|---|---|---|
| committer | 2008-10-02 22:27:03 +0000 | |
| commit | a95616f608aefc38250a620087639dcc6407567f (patch) | |
| tree | f4356ceb06e6a02fea26456c6a63261efc86fb19 /src/modules/m_auditorium.cpp | |
| parent | Some suggestions from jilles about handling unknown prefix errors, and some i... (diff) | |
Fix for bug #601
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@10614 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_auditorium.cpp')
| -rw-r--r-- | src/modules/m_auditorium.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/modules/m_auditorium.cpp b/src/modules/m_auditorium.cpp index 023cb7adf..f898c19c9 100644 --- a/src/modules/m_auditorium.cpp +++ b/src/modules/m_auditorium.cpp @@ -157,6 +157,15 @@ class ModuleAuditorium : public Module } } + bool OnHostCycle(User* user) + { + for (UCListIter f = user->chans.begin(); f != user->chans.end(); f++) + if (f->first->IsModeSet('u')) + return true; + + return false; + } + void OnUserQuit(User* user, const std::string &reason, const std::string &oper_message) { Command* parthandler = ServerInstance->Parser->GetHandler("PART"); |
