From 19d57d3a32c8872c867c57f9fc37f2779824fcec Mon Sep 17 00:00:00 2001 From: brain Date: Sun, 9 Jul 2006 13:16:53 +0000 Subject: More copy/paste fixes git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4209 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_chanprotect.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules') 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); -- cgit v1.2.3