From 3c3a96461e443d926a7385f79ad61ca21edc45ab Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Wed, 8 May 2019 21:06:10 -0700 Subject: [PATCH] Minor bugfix for two rarely used plugins --- PBot/Plugins/MagicCommand.pm | 2 +- PBot/Plugins/ParseDate.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PBot/Plugins/MagicCommand.pm b/PBot/Plugins/MagicCommand.pm index cb3a8711..2e70062f 100644 --- a/PBot/Plugins/MagicCommand.pm +++ b/PBot/Plugins/MagicCommand.pm @@ -31,7 +31,7 @@ sub initialize { sub unload { my $self = shift; - $self->{pbot}->{commands}->unload("mc"); + $self->{pbot}->{commands}->unregister("mc"); } sub magic { diff --git a/PBot/Plugins/ParseDate.pm b/PBot/Plugins/ParseDate.pm index 404b5491..9fdf010f 100644 --- a/PBot/Plugins/ParseDate.pm +++ b/PBot/Plugins/ParseDate.pm @@ -36,7 +36,7 @@ sub initialize { sub unload { my $self = shift; - $self->{pbot}->{commands}->unload("pd"); + $self->{pbot}->{commands}->unregister("pd"); } sub pd {