mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-17 05:50:56 +01:00
Plugins/RemindMe: allow any user to use -c
This commit is contained in:
parent
076cd98f32
commit
d679b005d6
@ -196,10 +196,6 @@ sub cmd_remindme {
|
|||||||
|
|
||||||
# option -c was provided; ensure user is an admin and bot is in channel
|
# option -c was provided; ensure user is an admin and bot is in channel
|
||||||
if ($channel) {
|
if ($channel) {
|
||||||
if (not defined $admininfo) {
|
|
||||||
return "Only admins can create channel reminders.";
|
|
||||||
}
|
|
||||||
|
|
||||||
if (not $self->{pbot}->{channels}->is_active($channel)) {
|
if (not $self->{pbot}->{channels}->is_active($channel)) {
|
||||||
return "I'm not active in channel $channel.";
|
return "I'm not active in channel $channel.";
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user