Revision 39, 361 bytes
(checked in by yumileroy, 17 years ago)
|
[svn] * Various small changes here and there.
* Implementing MangChat? IRC system.
* Added new config option, MAX_WHO, can be used to set the limit of characters being sent in a /who request from client.
Original author: XTZGZoReX
Date: 2008-10-12 14:03:38-05:00
|
Rev | Line | |
---|
[39] | 1 | #ifndef _IRC_LOG_H |
---|
| 2 | #define _IRC_LOG_H |
---|
| 3 | |
---|
| 4 | #include "Common.h" |
---|
| 5 | #include <fstream> |
---|
| 6 | |
---|
| 7 | class IRCLog |
---|
| 8 | { |
---|
| 9 | public: |
---|
| 10 | IRCLog(); |
---|
| 11 | ~IRCLog(); |
---|
| 12 | |
---|
| 13 | public: |
---|
| 14 | void WriteLog(const char *what, ...); |
---|
| 15 | std::string GetLogDateStr() const; |
---|
| 16 | std::string GetLogDateTimeStr() const; |
---|
| 17 | private: |
---|
| 18 | std::ofstream ircLogfile; |
---|
| 19 | }; |
---|
| 20 | |
---|
| 21 | |
---|
| 22 | #endif |
---|