summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2012-07-06 15:39:11 +0200
committerattilamolnar <attilamolnar@hush.com>2013-04-04 19:05:20 +0200
commit8c08130e19247f4a0798613ba6b931cd599115b6 (patch)
treefc26068109abc1719c8fb26bcf0f8fe22a19a13b /include
parent886f1ba488a5ab9d7fe4d7b4ac6b9c9dc2841738 (diff)
Make cmd_whowas act like a module, remove special handling
Diffstat (limited to 'include')
-rw-r--r--include/commands/cmd_whowas.h36
-rw-r--r--include/users.h4
2 files changed, 0 insertions, 40 deletions
diff --git a/include/commands/cmd_whowas.h b/include/commands/cmd_whowas.h
index d33354122..8033f1796 100644
--- a/include/commands/cmd_whowas.h
+++ b/include/commands/cmd_whowas.h
@@ -23,35 +23,9 @@
#define CMD_WHOWAS_H
#include "modules.h"
-struct WhowasRequest : public Request
-{
- /* list of available internal commands */
- enum Internals
- {
- WHOWAS_ADD = 1,
- WHOWAS_STATS = 2,
- WHOWAS_PRUNE = 3,
- WHOWAS_MAINTAIN = 4
- };
-
- const Internals type;
- std::string value;
- User* user;
-
- WhowasRequest(Module* src, Module* whowas, Internals Type) : Request(src, whowas, "WHOWAS"), type(Type)
- {}
-};
-
-/* Forward ref for timer */
-class WhoWasMaintainTimer;
-
/* Forward ref for typedefs */
class WhoWasGroup;
-/** Timer that is used to maintain the whowas list, called once an hour
- */
-extern WhoWasMaintainTimer* timer;
-
/** A group of users related by nickname
*/
typedef std::deque<WhoWasGroup*> whowas_set;
@@ -128,14 +102,4 @@ class WhoWasGroup
~WhoWasGroup();
};
-class WhoWasMaintainTimer : public Timer
-{
- public:
- WhoWasMaintainTimer(long interval)
- : Timer(interval, ServerInstance->Time(), true)
- {
- }
- virtual void Tick(time_t TIME);
-};
-
#endif
diff --git a/include/users.h b/include/users.h
index 102e7783f..b9807a158 100644
--- a/include/users.h
+++ b/include/users.h
@@ -485,10 +485,6 @@ class CoreExport User : public Extensible
*/
const std::string& MakeHostIP();
- /** Add the user to WHOWAS system
- */
- void AddToWhoWas();
-
/** Oper up the user using the given opertype.
* This will also give the +o usermode.
*/