Revision 39, 0.7 kB
(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
|
Line | |
---|
1 | #ifndef _IRC_CLIENT_ONLINE |
---|
2 | #define _IRC_CLIENT_ONLINE |
---|
3 | |
---|
4 | #include "IRCClient.h" |
---|
5 | #include "IRCCmd.h" |
---|
6 | |
---|
7 | // the reason to run this command multithreaded |
---|
8 | // is to be able to "spread" the output over irc |
---|
9 | // for servers with high player count |
---|
10 | // in order not to freeze the mangchat core with sleep |
---|
11 | // a new thread is spawned it will output the player data |
---|
12 | // evry "10 players" and pauzes to not spam irc |
---|
13 | // in addition the command is locked so i cannot be used |
---|
14 | // while active. |
---|
15 | |
---|
16 | class mcs_OnlinePlayers : public ZThread::Runnable |
---|
17 | { |
---|
18 | public: |
---|
19 | mcs_OnlinePlayers(); |
---|
20 | mcs_OnlinePlayers(_CDATA *_CD); |
---|
21 | ~mcs_OnlinePlayers(); |
---|
22 | void run(); |
---|
23 | public: |
---|
24 | _CDATA *CD; |
---|
25 | }; |
---|
26 | |
---|
27 | #endif |
---|