summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-10 18:54:25 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-07-10 18:54:25 +0000
commit62b550f653ca674bb84eaac77fcdbc4bfc84f135 (patch)
treeb67933ec558a040aa969025f0331dd3d305af9c1
parent73e972340bee8ea9cdbbe5520b1b461fbce1f121 (diff)
Inherit tons of stuff from classbase that should always have been
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4298 e03df62e-2008-0410-955e-edbf42e46eb7
-rw-r--r--include/configreader.h8
-rw-r--r--include/inspircd.h4
-rw-r--r--include/mode.h2
-rw-r--r--include/modules.h4
-rw-r--r--include/u_listmode.h4
-rw-r--r--include/users.h2
-rw-r--r--src/modules/m_opermd5.cpp3
-rw-r--r--src/modules/m_opersha256.cpp3
-rw-r--r--src/modules/m_park.cpp8
-rw-r--r--src/modules/m_safelist.cpp2
10 files changed, 25 insertions, 15 deletions
diff --git a/include/configreader.h b/include/configreader.h
index 3bb7bb4ed..773f1c637 100644
--- a/include/configreader.h
+++ b/include/configreader.h
@@ -32,7 +32,9 @@ typedef bool (*MultiNotify)(const char*);
enum ConfigDataType { DT_NOTHING, DT_INTEGER, DT_CHARPTR, DT_BOOLEAN };
-struct InitialConfig {
+class InitialConfig : public classbase
+{
+ public:
char* tag;
char* value;
void* val;
@@ -40,7 +42,9 @@ struct InitialConfig {
Validator validation_function;
};
-struct MultiConfig {
+class MultiConfig : public classbase
+{
+ public:
const char* tag;
char* items[12];
int datatype[12];
diff --git a/include/inspircd.h b/include/inspircd.h
index 11fdb3a54..109e1f2be 100644
--- a/include/inspircd.h
+++ b/include/inspircd.h
@@ -52,7 +52,7 @@ template<typename T> inline std::string ConvToStr(const T &in)
return tmp.str();
}
-class serverstats
+class serverstats : public classbase
{
public:
int statsAccept;
@@ -77,7 +77,7 @@ class serverstats
};
-class InspIRCd
+class InspIRCd : public classbase
{
private:
char MODERR[MAXBUF];
diff --git a/include/mode.h b/include/mode.h
index 8145ccd32..386116a24 100644
--- a/include/mode.h
+++ b/include/mode.h
@@ -251,7 +251,7 @@ class ModeWatcher : public Extensible
typedef std::vector<ModeWatcher*>::iterator ModeWatchIter;
-class ModeParser
+class ModeParser : public classbase
{
private:
/**
diff --git a/include/modules.h b/include/modules.h
index 851fa1b5a..3aab093e5 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -268,7 +268,7 @@ class Event : public ModuleMessage
* be loaded. If this happens, the error message returned by ModuleException::GetReason will be displayed to the user
* attempting to load the module, or dumped to the console if the ircd is currently loading for the first time.
*/
-class ModuleException
+class ModuleException : public classbase
{
private:
/** Holds the error message to be displayed
@@ -1210,7 +1210,7 @@ class Module : public Extensible
* output to users and other servers. All modules should instantiate at least one copy of this class,
* and use its member functions to perform their tasks.
*/
-class Server : public classbase
+class Server : public Extensible
{
public:
/** Default constructor.
diff --git a/include/u_listmode.h b/include/u_listmode.h
index 9c34cc982..036319b9e 100644
--- a/include/u_listmode.h
+++ b/include/u_listmode.h
@@ -25,7 +25,7 @@ inline std::string stringtime()
return TIME.str();
}
-class ListItem
+class ListItem : public classbase
{
public:
std::string nick;
@@ -33,7 +33,7 @@ public:
std::string time;
};
-class ListLimit
+class ListLimit : public classbase
{
public:
std::string mask;
diff --git a/include/users.h b/include/users.h
index 64ebd5fb7..30fa937fb 100644
--- a/include/users.h
+++ b/include/users.h
@@ -398,7 +398,7 @@ class userrec : public connection
/** Used to hold WHOWAS information
*/
-class WhoWasGroup
+class WhoWasGroup : public classbase
{
public:
char* host;
diff --git a/src/modules/m_opermd5.cpp b/src/modules/m_opermd5.cpp
index d99b9a96e..166f166c4 100644
--- a/src/modules/m_opermd5.cpp
+++ b/src/modules/m_opermd5.cpp
@@ -45,7 +45,8 @@ typedef unsigned int uint32_t;
typedef uint32_t word32; /* NOT unsigned long. We don't support 16 bit platforms, anyway. */
typedef unsigned char byte;
-struct MD5Context {
+clas MD5Context : public classbase
+{
word32 buf[4];
word32 bytes[2];
word32 in[16];
diff --git a/src/modules/m_opersha256.cpp b/src/modules/m_opersha256.cpp
index a13028061..0a18c32af 100644
--- a/src/modules/m_opersha256.cpp
+++ b/src/modules/m_opersha256.cpp
@@ -55,8 +55,9 @@ static Server *Srv;
typedef unsigned int uint32_t;
#endif
-struct SHA256Context
+class SHA256Context : public classbase
{
+ public:
unsigned int tot_len;
unsigned int len;
unsigned char block[2 * SHA256_BLOCK_SIZE];
diff --git a/src/modules/m_park.cpp b/src/modules/m_park.cpp
index 8b800138a..c57102287 100644
--- a/src/modules/m_park.cpp
+++ b/src/modules/m_park.cpp
@@ -26,7 +26,11 @@ using namespace std;
/* $ModDesc: Provides support for user parking/unparking */
-class awaymsg
+class parking : public classbase
+{
+};
+
+class awaymsg : public parking
{
public:
std::string from;
@@ -34,7 +38,7 @@ class awaymsg
time_t tm;
};
-class parkedinfo
+class parkedinfo : public parking
{
public:
std::string nick;
diff --git a/src/modules/m_safelist.cpp b/src/modules/m_safelist.cpp
index c20414340..a95198a5e 100644
--- a/src/modules/m_safelist.cpp
+++ b/src/modules/m_safelist.cpp
@@ -25,7 +25,7 @@ using namespace std;
extern time_t TIME;
-class ListData
+class ListData : public classbase
{
public:
long list_start;