From fd2eb26472bcc0b7b144f40523ff820cba82f574 Mon Sep 17 00:00:00 2001 From: brain Date: Thu, 10 Aug 2006 18:04:19 +0000 Subject: Move IsNick, IsIdent into class InspIRCd, update modules that use it. Change message.h to just a #warning saying its deprecated, and remove all use of it from the core :) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4847 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_oper.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/cmd_oper.cpp') diff --git a/src/cmd_oper.cpp b/src/cmd_oper.cpp index 085b6983d..2b4e3e206 100644 --- a/src/cmd_oper.cpp +++ b/src/cmd_oper.cpp @@ -25,7 +25,6 @@ #include "modules.h" #include "dynamic.h" #include "wildcard.h" -#include "message.h" #include "commands.h" #include "mode.h" #include "xline.h" @@ -94,7 +93,7 @@ void cmd_oper::Handle (const char** parameters, int pcnt, userrec *user) ServerInstance->Config->ConfValue(ServerInstance->Config->config_data, "type","host", j, HostName, MAXBUF); if (*HostName) user->ChangeDisplayedHost(HostName); - if (!isnick(TypeName)) + if (!ServerInstance->IsNick(TypeName)) { user->WriteServ("491 %s :Invalid oper type (oper types must follow the same syntax as nicknames)",user->nick); ServerInstance->WriteOpers("*** CONFIGURATION ERROR! Oper type invalid for OperType '%s'",OperType); -- cgit v1.2.3