diff options
Diffstat (limited to 'Plugin')
-rw-r--r-- | Plugin/Admin.pm | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Plugin/Admin.pm b/Plugin/Admin.pm index c2c4f55..2bc0e19 100644 --- a/Plugin/Admin.pm +++ b/Plugin/Admin.pm @@ -128,7 +128,10 @@ sub mode { return unless is_admin($logger, $who, $ided); return "Syntax: mode <everything>" unless @arguments > 0; - # FIXME should use $where if it's a channel (?) + if (not is_channel($arguments[0] and is_channel($where->[0]))) { + $rest = "$where->[0] $rest"; + } + $irc->yield(mode => $rest); } |