summaryrefslogtreecommitdiff
path: root/src/cmd_user.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-10 18:04:19 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-08-10 18:04:19 +0000
commitfd2eb26472bcc0b7b144f40523ff820cba82f574 (patch)
tree367926c5a429de9eca5db303c8d12d146fa8c6c8 /src/cmd_user.cpp
parentafa1ec0e9586d93482b5dfdc2d77e93c9499ea10 (diff)
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
Diffstat (limited to 'src/cmd_user.cpp')
-rw-r--r--src/cmd_user.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cmd_user.cpp b/src/cmd_user.cpp
index cd7f26d09..72eb3afcf 100644
--- a/src/cmd_user.cpp
+++ b/src/cmd_user.cpp
@@ -17,12 +17,12 @@
#include "inspircd_config.h"
#include "configreader.h"
#include "users.h"
-#include "message.h"
#include "commands.h"
#include "helperfuncs.h"
#include "commands/cmd_user.h"
extern InspIRCd* ServerInstance;
+
extern int MODCOUNT;
extern ModuleList modules;
extern FactoryList factory;
@@ -31,7 +31,7 @@ void cmd_user::Handle (const char** parameters, int pcnt, userrec *user)
{
if (user->registered < REG_NICKUSER)
{
- if (!isident(parameters[0])) {
+ if (!ServerInstance->IsIdent(parameters[0])) {
// This kinda Sucks, According to the RFC thou, its either this,
// or "You have already registered" :p -- Craig
user->WriteServ("461 %s USER :Not enough parameters",user->nick);