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?://}){
say localtime(time) . " - $msg";
+ $c->dm_reply(1) if $p eq '!';
+
return $self->disp->run_command($c,$command,$args);
}