aboutsummaryrefslogtreecommitdiffstats
path: root/modules/cycle.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/cycle.cpp')
-rw-r--r--modules/cycle.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/cycle.cpp b/modules/cycle.cpp
index 012e82948..5dbf7b6a7 100644
--- a/modules/cycle.cpp
+++ b/modules/cycle.cpp
@@ -36,7 +36,7 @@ private:
ChanModeReference banmode;
public:
- CommandCycle(Module* Creator)
+ CommandCycle(const WeakModulePtr& Creator)
: SplitCommand(Creator, "CYCLE", 1)
, banmode(Creator, "ban")
{
@@ -93,7 +93,7 @@ private:
public:
ModuleCycle()
: Module(VF_VENDOR, "Allows channel members to part and rejoin a channel without needing to worry about channel modes such as +i (inviteonly) which might prevent rejoining.")
- , cmd(this)
+ , cmd(weak_from_this())
{
}
};