mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-23 10:34:52 +01:00
Do not require whitespace next to nick when triggering by bot-nick
This commit is contained in:
parent
204c0dc0ce
commit
3012297183
@ -89,9 +89,9 @@ sub process_line {
|
||||
$preserve_whitespace = 1;
|
||||
} elsif($cmd_text =~ /^$bot_trigger(.*)$/) {
|
||||
$command = $1;
|
||||
} elsif($cmd_text =~ /^.?$botnick.?\s+(.*?)$/i) {
|
||||
} elsif($cmd_text =~ /^.?$botnick.?\s*(.*?)$/i) {
|
||||
$command = $1;
|
||||
} elsif($cmd_text =~ /^(.*?),?\s+$botnick[?!.]*$/i) {
|
||||
} elsif($cmd_text =~ /^(.*?),?\s*$botnick[?!.]*$/i) {
|
||||
$command = $1;
|
||||
} elsif($cmd_text =~ /https?:\/\/([^\s]+)/i) {
|
||||
$has_url = $1;
|
||||
|
Loading…
Reference in New Issue
Block a user