summaryrefslogtreecommitdiff
path: root/src/cmd_oper.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-10 17:03:50 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-09-10 17:03:50 +0000
commitba5a5b345cdfbc73c0faf9a6cb5fd8d96474ae41 (patch)
tree5434f367a42f912bd19cd29db90e86b7f7e3ea2f /src/cmd_oper.cpp
parent8f9d81063ce18619f5ef56c31cb7fa90cebd3f54 (diff)
Move Spacify() into irc:: namespace as multiple modules use it now
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5200 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/cmd_oper.cpp')
-rw-r--r--src/cmd_oper.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/cmd_oper.cpp b/src/cmd_oper.cpp
index 4f4c0d284..f7975a2e4 100644
--- a/src/cmd_oper.cpp
+++ b/src/cmd_oper.cpp
@@ -20,7 +20,7 @@
#include "modules.h"
#include "wildcard.h"
#include "commands/cmd_oper.h"
-#include "commands/cmd_whois.h"
+#include "hashcomp.h"
bool OneOfMatches(const char* host, const char* ip, const char* hostlist)
{
@@ -36,8 +36,6 @@ bool OneOfMatches(const char* host, const char* ip, const char* hostlist)
return false;
}
-
-
extern "C" command_t* init_command(InspIRCd* Instance)
{
return new cmd_oper(Instance);
@@ -106,8 +104,8 @@ CmdResult cmd_oper::Handle (const char** parameters, int pcnt, userrec *user)
if (found)
{
/* correct oper credentials */
- ServerInstance->SNO->WriteToSnoMask('o',"%s (%s@%s) is now an IRC operator of type %s (using oper '%s')",user->nick,user->ident,user->host,Spacify(OperType),parameters[0]);
- user->WriteServ("381 %s :You are now an IRC operator of type %s",user->nick,Spacify(OperType));
+ ServerInstance->SNO->WriteToSnoMask('o',"%s (%s@%s) is now an IRC operator of type %s (using oper '%s')",user->nick,user->ident,user->host,irc::Spacify(OperType),parameters[0]);
+ user->WriteServ("381 %s :You are now an IRC operator of type %s",user->nick,irc::Spacify(OperType));
if (!user->modes[UM_OPERATOR])
user->Oper(OperType);
}