summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;