diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-10 18:04:19 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-10 18:04:19 +0000 |
commit | fd2eb26472bcc0b7b144f40523ff820cba82f574 (patch) | |
tree | 367926c5a429de9eca5db303c8d12d146fa8c6c8 /include | |
parent | afa1ec0e9586d93482b5dfdc2d77e93c9499ea10 (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 'include')
-rw-r--r-- | include/globals.h | 2 | ||||
-rw-r--r-- | include/inspircd.h | 3 | ||||
-rw-r--r-- | include/message.h | 18 | ||||
-rw-r--r-- | include/modules.h | 5 |
4 files changed, 4 insertions, 24 deletions
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 <typeinfo> -#include <iostream> -#include <string> -#include <deque> -#include <sstream> -#include <vector> -#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. */ |