summaryrefslogtreecommitdiff
path: root/include/dynref.h
diff options
context:
space:
mode:
authorattilamolnar <attilamolnar@hush.com>2013-07-15 00:20:28 +0200
committerattilamolnar <attilamolnar@hush.com>2013-07-19 19:40:02 +0200
commit5288eb159451aea53168c1a812a72594801f6421 (patch)
treef8b21dc166a573796c87d67de63e815e3ccb9d66 /include/dynref.h
parentac55270a082e6d8f5332fa939960553bac8decae (diff)
Seperate ModeReference into ChanModeReference and UserModeReference
Diffstat (limited to 'include/dynref.h')
-rw-r--r--include/dynref.h10
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) {}
+};