diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-09 13:16:53 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-07-09 13:16:53 +0000 |
commit | 19d57d3a32c8872c867c57f9fc37f2779824fcec (patch) | |
tree | ad88d0d021e06ab61a3d5480d9fd2d2c358a4c83 /src | |
parent | df624daa3f38d7dbb932db67c53ab667bb4d542e (diff) |
More copy/paste fixes
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4209 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r-- | src/modules/m_chanprotect.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp index 40cd4f39a..a3926e73b 100644 --- a/src/modules/m_chanprotect.cpp +++ b/src/modules/m_chanprotect.cpp @@ -114,7 +114,7 @@ class ChanProtect : public ModeHandler } // given user isnt even on the channel, eat the mode change - if (!chan->HasUser(theuser)) + if (!channel->HasUser(theuser)) { parameter = ""; return MODEACTION_DENY; @@ -148,7 +148,7 @@ class ChanProtect : public ModeHandler else { // bzzzt, wrong answer! - WriteServ(user->fd,"482 %s %s :You are not a channel founder",user->nick, chan->name); + WriteServ(source->fd,"482 %s %s :You are not a channel founder",source->nick, channel->name); return MODEACTION_DENY; } } @@ -187,7 +187,7 @@ class ModuleChanProtect : public Module cf = new ChanFounder(Me); Srv->AddMode(cp, 'a'); - Srv->AdDMode(cf, 'q'); + Srv->AddMode(cf, 'q'); // read our config options (main config file) FirstInGetsFounder = Conf->ReadFlag("options","noservices",0); |