From 80015fe115f37243e7b75a48312edb5a029fa229 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 29 Apr 2005 05:46:17 +0000 Subject: Updated buffering, faster and more sensible (old code sucks) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1256 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/users.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'include/users.h') diff --git a/include/users.h b/include/users.h index 098762eca..a897d8282 100644 --- a/include/users.h +++ b/include/users.h @@ -173,6 +173,12 @@ class userrec : public connection */ char password[MAXBUF]; + /** User's receive queue. + * Lines from the IRCd awaiting processing are stored here. + * Upgraded april 2005, old system a bit hairy. + */ + std::string recvq; + userrec(); virtual ~userrec() { } @@ -209,6 +215,11 @@ class userrec : public connection * this to their oper classes and checking the commands they can execute. */ bool HasPermission(char* command); + + void userrec::AddBuffer(std::string a); + bool userrec::BufferIsReady(); + void userrec::ClearBuffer(); + std::string userrec::GetBuffer(); }; -- cgit v1.2.3