3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-01-23 18:44:33 +01:00

Do not require whitespace next to nick when triggering by bot-nick

This commit is contained in:
Pragmatic Software 2015-05-27 10:44:26 -07:00
parent 204c0dc0ce
commit 3012297183

View File

@ -89,9 +89,9 @@ sub process_line {
$preserve_whitespace = 1; $preserve_whitespace = 1;
} elsif($cmd_text =~ /^$bot_trigger(.*)$/) { } elsif($cmd_text =~ /^$bot_trigger(.*)$/) {
$command = $1; $command = $1;
} elsif($cmd_text =~ /^.?$botnick.?\s+(.*?)$/i) { } elsif($cmd_text =~ /^.?$botnick.?\s*(.*?)$/i) {
$command = $1; $command = $1;
} elsif($cmd_text =~ /^(.*?),?\s+$botnick[?!.]*$/i) { } elsif($cmd_text =~ /^(.*?),?\s*$botnick[?!.]*$/i) {
$command = $1; $command = $1;
} elsif($cmd_text =~ /https?:\/\/([^\s]+)/i) { } elsif($cmd_text =~ /https?:\/\/([^\s]+)/i) {
$has_url = $1; $has_url = $1;