aboutsummaryrefslogtreecommitdiff
path: root/src/command_parse.cpp
diff options
context:
space:
mode:
authorGravatar attilamolnar2013-05-16 01:56:06 +0200
committerGravatar attilamolnar2013-05-16 01:56:06 +0200
commitc5a46583800374344d8676eccd7061a15a5ac1ce (patch)
tree486f8ecdc4abd23795c871a59fd0ec707c6a49d8 /src/command_parse.cpp
parentMerge pull request #514 from SaberUK/master+virtual-cleanup (diff)
Allow spaces (and more) in oper types
The spaces are converted to '_' characters in OPERTYPE for 2.0 servers Issue #533 suggested by @ankitkv
Diffstat (limited to 'src/command_parse.cpp')
-rw-r--r--src/command_parse.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/command_parse.cpp b/src/command_parse.cpp
index a7fd810a3..d386337f2 100644
--- a/src/command_parse.cpp
+++ b/src/command_parse.cpp
@@ -296,7 +296,7 @@ bool CommandParser::ProcessCommand(LocalUser *user, std::string &cmd)
if (!user->HasPermission(command))
{
user->WriteNumeric(ERR_NOPRIVILEGES, "%s :Permission Denied - Oper type %s does not have access to command %s",
- user->nick.c_str(), user->oper->NameStr(), command.c_str());
+ user->nick.c_str(), user->oper->name.c_str(), command.c_str());
return do_more;
}
}