3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-12-25 12:12:34 +01:00

/kick factoids can now be piped

This commit is contained in:
Pragmatic Software 2017-11-17 21:38:28 -08:00
parent 7b903854a3
commit 45dcefc752

View File

@ -373,6 +373,7 @@ sub handle_result {
# FIXME: do this better # FIXME: do this better
if ($result =~ m{^(/say |/me )}i) { if ($result =~ m{^(/say |/me )}i) {
} elsif ($result =~ m{^/msg ([^ ]+) }i) { } elsif ($result =~ m{^/msg ([^ ]+) }i) {
} elsif ($result =~ m{^/kick }i) {
} else { } else {
$result = "$stuff->{prepend}$result"; $result = "$stuff->{prepend}$result";
$self->{pbot}->{logger}->log("Prepending [$stuff->{prepend}] to result [$result]\n"); $self->{pbot}->{logger}->log("Prepending [$stuff->{prepend}] to result [$result]\n");