Skip to content

Commit

Permalink
Mergable part of bug #441 fix
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8480 e03df62e-2008-0410-955e-edbf42e46eb7
  • Loading branch information
braindigitalis committed Nov 3, 2007
1 parent c1db857 commit 8e4a314
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion src/mode.cpp
Expand Up @@ -393,7 +393,8 @@ void ModeParser::Process(const char** parameters, int pcnt, userrec *user, bool
* NOT a uline and NOT a servermode,
* OR, NOT halfop or above.
*/
user->WriteServ("482 %s %s :You're not a channel (half)operator",user->nick, targetchannel->name);
user->WriteServ("482 %s %s :You're not a channel %soperator",user->nick, targetchannel->name,
ServerInstance->Config->AllowHalfop ? "(half)" : "");
return;
}
}
Expand Down
3 changes: 2 additions & 1 deletion src/modules/m_timedbans.cpp
Expand Up @@ -98,7 +98,8 @@ class cmd_tban : public command_t
}
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]);
Expand Down
3 changes: 2 additions & 1 deletion src/modules/m_uninvite.cpp
Expand Up @@ -53,7 +53,8 @@ class cmd_uninvite : public command_t
{
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;
}
}
Expand Down

0 comments on commit 8e4a314

Please sign in to comment.