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 --- include/globals.h | 2 -- include/inspircd.h | 3 +++ include/message.h | 18 +----------------- include/modules.h | 5 ----- 4 files changed, 4 insertions(+), 24 deletions(-) (limited to 'include') diff --git a/include/globals.h b/include/globals.h index d30f18ede..4a5c1e1e4 100644 --- a/include/globals.h +++ b/include/globals.h @@ -31,6 +31,4 @@ typedef std::pair< std::string, std::string > KeyVal; typedef std::vector< KeyVal > KeyValList; typedef std::multimap< std::string, KeyValList > ConfigDataHash; -int isnick(const char *n); - #endif diff --git a/include/inspircd.h b/include/inspircd.h index dadab34fa..b2ed4da20 100644 --- a/include/inspircd.h +++ b/include/inspircd.h @@ -209,6 +209,9 @@ class InspIRCd : public classbase const std::string& GetModuleName(Module* m); + bool IsNick(const char* n); + bool IsIdent(const char* n); + std::string GetRevision(); std::string GetVersionString(); void WritePID(const std::string &filename); diff --git a/include/message.h b/include/message.h index f68eb8f6f..aab2f6973 100644 --- a/include/message.h +++ b/include/message.h @@ -14,21 +14,5 @@ * --------------------------------------------------- */ -#ifndef __MESSAGE_H -#define __MESSAGE_H +#warning "message.h is deprecated and may be removed from a future version" -// include the common header files - -#include -#include -#include -#include -#include -#include -#include "users.h" -#include "channels.h" - -int isident(const char* n); -int isnick(const char* n); - -#endif diff --git a/include/modules.h b/include/modules.h index 1b9d8c25b..fc68db62e 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1250,11 +1250,6 @@ class Module : public Extensible class Server : public Extensible { public: - /** Returns true if a nick is valid. - * Nicks for unregistered connections will return false. - */ - bool IsNick(const std::string &nick); - /** Attempts to look up a nick using the file descriptor associated with that nick. * This function will return NULL if the file descriptor is not associated with a valid user. */ -- cgit v1.3.1-10-gc9f91