summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
Diffstat (limited to 'include')
-rw-r--r--include/channels.h16
-rw-r--r--include/users.h13
-rw-r--r--include/xline.h12
3 files changed, 19 insertions, 22 deletions
diff --git a/include/channels.h b/include/channels.h
index ac1ee0385..7df2d665e 100644
--- a/include/channels.h
+++ b/include/channels.h
@@ -168,22 +168,6 @@ class chanrec : public Extensible
*/
std::string GetModeParameter(char mode);
- /** Increment the channel "user counter"
- * The channel user counter is a reference counter which
- * holds the number of users on the channel. If it decremented
- * to 0 then the channel is removed from the system.
- */
- void IncUserCounter();
-
- /** Decrement the channel "user counter"
- * The channel user counter is a reference counter which
- * holds the number of users on the channel. If it decremented
- * to 0 then the channel is removed from the system.
- * Modules may alter the reference count to hold channels open
- * which have no users and would normally be deleted once empty.
- */
- void DecUserCounter();
-
/** Obtain the channel "user counter"
* This returns the channel reference counter, which is initialized
* to 0 when the channel is created and incremented/decremented
diff --git a/include/users.h b/include/users.h
index 2241a6e28..681f5d4b4 100644
--- a/include/users.h
+++ b/include/users.h
@@ -310,5 +310,18 @@ class userrec : public connection
};
+/** A lightweight userrec used by WHOWAS
+ */
+class WhoWasUser
+{
+ public:
+ char nick[NICKMAX];
+ char ident[16];
+ char dhost[160];
+ char host[160];
+ char fullname[128];
+ char server[256];
+ time_t signon;
+};
#endif
diff --git a/include/xline.h b/include/xline.h
index 5381d525a..d6b4e5cb4 100644
--- a/include/xline.h
+++ b/include/xline.h
@@ -45,7 +45,7 @@ class XLine : public classbase
/** Source of the ban. This can be a servername or an oper nickname
*/
- char source[MAXBUF];
+ char source[256];
/** Reason for the ban
*/
@@ -65,7 +65,7 @@ class KLine : public XLine
/** Hostmask (ident@host) to match against
* May contain wildcards.
*/
- char hostmask[MAXBUF];
+ char hostmask[200];
};
/** GLine class
@@ -76,7 +76,7 @@ class GLine : public XLine
/** Hostmask (ident@host) to match against
* May contain wildcards.
*/
- char hostmask[MAXBUF];
+ char hostmask[200];
};
class ELine : public XLine
@@ -85,7 +85,7 @@ class ELine : public XLine
/** Hostmask (ident@host) to match against
* May contain wildcards.
*/
- char hostmask[MAXBUF];
+ char hostmask[200];
};
/** ZLine class
@@ -96,7 +96,7 @@ class ZLine : public XLine
/** IP Address (xx.yy.zz.aa) to match against
* May contain wildcards.
*/
- char ipaddr[MAXBUF];
+ char ipaddr[40];
/** Set if this is a global Z:line
* (e.g. it came from another server)
*/
@@ -111,7 +111,7 @@ class QLine : public XLine
/** Nickname to match against.
* May contain wildcards.
*/
- char nick[MAXBUF];
+ char nick[64];
/** Set if this is a global Z:line
* (e.g. it came from another server)
*/