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 {