Skip to content

Commit

Permalink
Only ignore said() when it returns a undef/empty list, not false
Browse files Browse the repository at this point in the history
  • Loading branch information
hinrik committed Nov 3, 2010
1 parent de391db commit cb302b8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Changes
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ Revision history Bot::BasicBot

{{$NEXT}}
- Applied patch from Mario Domgörgen to use log() for warnings (RT #51804)
- Only ignore said() when it returns undef/empty list, not false

0.82 Wed Nov 3 02:09:36 GMT 2010
- Maintainership moved from cpan:TOMI to cpan:HINRIK
Expand Down
2 changes: 1 addition & 1 deletion lib/Bot/BasicBot.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1218,7 +1218,7 @@ sub irc_received_state {
### what did we get back?

# nothing? Say nothing then
return unless $return;
return unless defined $return;

# a string? Say it how we were addressed then
unless ( ref($return) ) {
Expand Down

0 comments on commit cb302b8

Please sign in to comment.