diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-07-15 00:20:28 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-07-19 19:40:02 +0200 |
commit | 5288eb159451aea53168c1a812a72594801f6421 (patch) | |
tree | f8b21dc166a573796c87d67de63e815e3ccb9d66 /include/dynref.h | |
parent | ac55270a082e6d8f5332fa939960553bac8decae (diff) |
Seperate ModeReference into ChanModeReference and UserModeReference
Diffstat (limited to 'include/dynref.h')
-rw-r--r-- | include/dynref.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/include/dynref.h b/include/dynref.h index e605ab794..1d05b35a0 100644 --- a/include/dynref.h +++ b/include/dynref.h @@ -84,10 +84,16 @@ class dynamic_reference_nocheck : public dynamic_reference_base }; class ModeHandler; -class ModeReference : public dynamic_reference_nocheck<ModeHandler> +class ChanModeReference : public dynamic_reference_nocheck<ModeHandler> { public: - ModeReference(Module* mod, const std::string& modename) + ChanModeReference(Module* mod, const std::string& modename) : dynamic_reference_nocheck<ModeHandler>(mod, "mode/" + modename) {} }; +class UserModeReference : public dynamic_reference_nocheck<ModeHandler> +{ + public: + UserModeReference(Module* mod, const std::string& modename) + : dynamic_reference_nocheck<ModeHandler>(mod, "umode/" + modename) {} +}; |