diff options
author | Adam <Adam@anope.org> | 2013-08-01 13:16:18 +0000 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-08-01 13:39:35 +0000 |
commit | 1e625b6837fdf96616cfc49700aa28d184a7c171 (patch) | |
tree | 6b6f06deaf769dd6b1a7853f90d26183828986f1 /include/uplink.h | |
parent | 402c624e455d13cc811bef2e8d1639846e892a34 (diff) |
Use MessageSource as the source for many IRCDProto funcs
Keep track of what user modes are oper only/server only/etc
Diffstat (limited to 'include/uplink.h')
-rw-r--r-- | include/uplink.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/include/uplink.h b/include/uplink.h index 1c92f6941..ac62e659d 100644 --- a/include/uplink.h +++ b/include/uplink.h @@ -14,6 +14,7 @@ #define UPLINK_H #include "sockets.h" +#include "protocol.h" namespace Uplink { @@ -33,16 +34,12 @@ class UplinkSocket : public ConnectionSocket, public BufferedSocket /* A message sent over the uplink socket */ class CoreExport Message { - private: - /* The source of the message, can be a server (Me), or any user (one of our bots) */ - const Server *server; - const User *user; + MessageSource source; std::stringstream buffer; public: Message(); - explicit Message(const Server *); - explicit Message(const User *); + Message(const MessageSource &); ~Message(); template<typename T> Message &operator<<(const T &val) { |