summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/channels.cpp4
-rw-r--r--src/modules/m_chanprotect.cpp2
-rw-r--r--src/modules/m_ojoin.cpp10
3 files changed, 3 insertions, 13 deletions
diff --git a/src/channels.cpp b/src/channels.cpp
index 9489e57ba..3685f6604 100644
--- a/src/channels.cpp
+++ b/src/channels.cpp
@@ -240,7 +240,7 @@ Channel* Channel::JoinUser(InspIRCd* Instance, User *user, const char* cn, bool
}
else
{
- privs = "@";
+ privs = "o";
created_by_local = true;
}
@@ -347,7 +347,7 @@ Channel* Channel::ForceChan(InspIRCd* Instance, Channel* Ptr, User* user, const
for (std::string::const_iterator x = privs.begin(); x != privs.end(); x++)
{
const char status = *x;
- ModeHandler* mh = Instance->Modes->FindPrefix(status);
+ ModeHandler* mh = Instance->Modes->FindMode(status, MODETYPE_CHANNEL);
if (mh)
{
/* Set, and make sure that the mode handler knows this mode was now set */
diff --git a/src/modules/m_chanprotect.cpp b/src/modules/m_chanprotect.cpp
index fd121edcf..56d107c71 100644
--- a/src/modules/m_chanprotect.cpp
+++ b/src/modules/m_chanprotect.cpp
@@ -343,7 +343,7 @@ class ModuleChanProtect : public Module
// the config option for it is set
if (FirstInGetsFounder && !chan)
- privs += std::string(1, QPrefix);
+ privs += 'q';
return MOD_RES_PASSTHRU;
}
diff --git a/src/modules/m_ojoin.cpp b/src/modules/m_ojoin.cpp
index 63be08a0f..a5b4b6ffb 100644
--- a/src/modules/m_ojoin.cpp
+++ b/src/modules/m_ojoin.cpp
@@ -67,16 +67,6 @@ class CommandOjoin : public Command
{
ServerInstance->SNO->WriteGlobalSno('a', std::string(user->nick)+" used OJOIN to join "+channel->name);
- if (!NPrefix)
- {
- std::vector<std::string> modes;
- modes.push_back(parameters[0]);
- modes.push_back("+Y");
- modes.push_back(user->nick);
- ServerInstance->SendMode(modes, ServerInstance->FakeClient);
- ServerInstance->PI->SendMode(channel->name, ServerInstance->Modes->GetLastParseParams(), ServerInstance->Modes->GetLastParseTranslate());
- }
-
if (notice)
{
channel = ServerInstance->FindChan(parameters[0]);