sub handleCommand {
my ($self, $c, $msg) = @_;
- my ($p,$command,$args) = ($msg =~ /^([.])(\S+)(?: (.+))?/);
+ my ($p,$command,$args) = ($msg =~ /^([.!])(\S+)(?: (.+))?/);
if ($msg =~ m{https?://[\w.]+/.+?scan(_id|_grp)?=(\w+)}){
if (!$command || $command =~ m{^https?://}){
}
}
+ $c->dm_reply(1) if $p eq '!';
+
return 0 unless $self->disp->has_command($command,$c->channel);
say localtime(time) . " - $msg";