More copy/paste fixes

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4209 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2006-07-09 13:16:53 +00:00
parent df624daa3f
commit 19d57d3a32

View File

@ -114,7 +114,7 @@ class ChanProtect : public ModeHandler
} }
// given user isnt even on the channel, eat the mode change // given user isnt even on the channel, eat the mode change
if (!chan->HasUser(theuser)) if (!channel->HasUser(theuser))
{ {
parameter = ""; parameter = "";
return MODEACTION_DENY; return MODEACTION_DENY;
@ -148,7 +148,7 @@ class ChanProtect : public ModeHandler
else else
{ {
// bzzzt, wrong answer! // 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; return MODEACTION_DENY;
} }
} }
@ -187,7 +187,7 @@ class ModuleChanProtect : public Module
cf = new ChanFounder(Me); cf = new ChanFounder(Me);
Srv->AddMode(cp, 'a'); Srv->AddMode(cp, 'a');
Srv->AdDMode(cf, 'q'); Srv->AddMode(cf, 'q');
// read our config options (main config file) // read our config options (main config file)
FirstInGetsFounder = Conf->ReadFlag("options","noservices",0); FirstInGetsFounder = Conf->ReadFlag("options","noservices",0);