Skip to content

Commit

Permalink
Cleaner looking return logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefan Wold committed Jun 22, 2013
1 parent 1beba29 commit 3b1e0c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions join2fast.pl
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,7 @@ sub event_439_cb {
# Update bar
weechat::bar_item_update($SCRIPT_NAME);

return $string if lc($options{hide_event_msg}) eq 'off';
return "";
return lc($options{hide_event_msg}) eq 'off' ? $string : "";
}

sub clear_queue_on_disconnect {
Expand Down

0 comments on commit 3b1e0c6

Please sign in to comment.