git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3220
e03df62e-2008-0410-955e-
edbf42e46eb7
virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname)
{
virtual int OnUserPreJoin(userrec* user, chanrec* chan, const char* cname)
{
- bool isoper = strchr(user->modes,'o') ? true : false;
-
for (int j =0; j < Conf->Enumerate("badchan"); j++)
{
irc::string cn = Conf->ReadValue("badchan","name",j).c_str();
irc::string thischan = cname;
if (thischan == cn)
{
for (int j =0; j < Conf->Enumerate("badchan"); j++)
{
irc::string cn = Conf->ReadValue("badchan","name",j).c_str();
irc::string thischan = cname;
if (thischan == cn)
{
- if ((Conf->ReadFlag("badchan","allowopers",j)) && isoper == true)
+ if ((Conf->ReadFlag("badchan","allowopers",j)) && *user->oper)