summaryrefslogtreecommitdiff
path: root/src/modules/m_operchans.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_operchans.cpp')
-rw-r--r--src/modules/m_operchans.cpp12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/modules/m_operchans.cpp b/src/modules/m_operchans.cpp
index c4c95bcdc..7f3b989aa 100644
--- a/src/modules/m_operchans.cpp
+++ b/src/modules/m_operchans.cpp
@@ -16,17 +16,13 @@
using namespace std;
-#include <stdio.h>
#include "users.h"
#include "channels.h"
#include "modules.h"
-
#include "inspircd.h"
/* $ModDesc: Provides support for oper-only chans via the +O channel mode */
-
-
class OperChans : public ModeHandler
{
public:
@@ -71,13 +67,9 @@ class ModuleOperChans : public Module
void Implements(char* List)
{
- List[I_On005Numeric] = List[I_OnUserPreJoin] = 1;
- }
-
- virtual void On005Numeric(std::string &output)
- {
+ List[I_OnUserPreJoin] = 1;
}
-
+
virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname)
{
if (!*user->oper)