diff options
Diffstat (limited to 'hipchat-stfu.pl')
| -rw-r--r-- | hipchat-stfu.pl | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/hipchat-stfu.pl b/hipchat-stfu.pl index 30b15c2..10fcc23 100644 --- a/hipchat-stfu.pl +++ b/hipchat-stfu.pl @@ -40,11 +40,13 @@ sub hipchat_stfu { if ($server->{'chatnet'} eq 'Bitlbee' && $nick eq 'root') { - if ($text =~ /^\s*$/) { + my $msg = prettify_hipchat($text); + + if ($msg eq '') { signal_stop(); } else { - signal_continue($server, prettify_hipchat($text), $nick, $address, $target); + signal_continue($server, $msg, $nick, $address, $target); } } }; |
