1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 10:36:38 +02:00
Files
anope/modules/commands/os_session.h
T
Adam e66063e630 Rewrote the example configurations and split them
up into seperate files for each pseudo client.

Also reorganized how the modules are stored, and
made most of the old "extra" modules "core"
2011-08-05 05:35:31 -04:00

33 lines
702 B
C++

#ifndef OS_SESSION_H
#define OS_SESSION_H
class SessionService : public Service
{
public:
typedef Anope::map<Session *> SessionMap;
typedef std::vector<Exception *> ExceptionVector;
SessionService(Module *m) : Service(m, "session") { }
virtual void AddException(Exception *e) = 0;
virtual void DelException(Exception *e) = 0;
virtual Exception *FindException(User *u) = 0;
virtual Exception *FindException(const Anope::string &host) = 0;
virtual ExceptionVector &GetExceptions() = 0;
virtual void AddSession(Session *s) = 0;
virtual void DelSession(Session *s) = 0;
virtual Session *FindSession(const Anope::string &mask) = 0;
virtual SessionMap &GetSessions() = 0;
};
#endif