summaryrefslogtreecommitdiff
path: root/src/modules
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 /src/modules
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
Diffstat (limited to 'src/modules')
-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
4 files changed, 11 insertions, 5 deletions
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;