summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-03 19:55:04 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-11-03 19:55:04 +0000
commit3593e33ce374caee9aec0575b49ec9b0001a8ec6 (patch)
tree2a2d91e02f5a33298b96b18ddd707afb7f4206c1 /src/modules
parent1ccb8068853bbd28b52b10b1cbb7438b5c231f41 (diff)
Partial fix for bug #441
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8479 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/m_timedbans.cpp3
-rw-r--r--src/modules/m_uninvite.cpp3
2 files changed, 4 insertions, 2 deletions
diff --git a/src/modules/m_timedbans.cpp b/src/modules/m_timedbans.cpp
index 682fc2f01..30dda81f5 100644
--- a/src/modules/m_timedbans.cpp
+++ b/src/modules/m_timedbans.cpp
@@ -94,7 +94,8 @@ class CommandTban : public Command
}
return CMD_FAILURE;
}
- else user->WriteServ("482 %s %s :You must be at least a half-operator to change modes on this channel",user->nick, channel->name);
+ else user->WriteServ("482 %s %s :You must be at least a%soperator to change modes on this channel",user->nick, channel->name,
+ ServerInstance->Config->AllowHalfop ? " half-" : " channel ");
return CMD_FAILURE;
}
user->WriteServ("401 %s %s :No such channel",user->nick, parameters[0]);
diff --git a/src/modules/m_uninvite.cpp b/src/modules/m_uninvite.cpp
index 881483405..0adc26cb7 100644
--- a/src/modules/m_uninvite.cpp
+++ b/src/modules/m_uninvite.cpp
@@ -50,7 +50,8 @@ class CommandUninvite : public Command
{
if (c->GetStatus(user) < STATUS_HOP)
{
- user->WriteServ("482 %s %s :You must be at least a half-operator to change modes on this channel",user->nick, c->name);
+ user->WriteServ("482 %s %s :You must be at least a%soperator to change modes on this channel",user->nick, c->name,
+ ServerInstance->Config->AllowHalfop ? " half-" : " channel ");
return CMD_FAILURE;
}
}