Skip to content

Instantly share code, notes, and snippets.

@okkez
Created December 8, 2009 04:24
Show Gist options
  • Save okkez/251399 to your computer and use it in GitHub Desktop.
Save okkez/251399 to your computer and use it in GitHub Desktop.
diff --git a/lib/plugins/notify-send.rb b/lib/plugins/notify-send.rb
index 834fa82..4713a8c 100644
--- a/lib/plugins/notify-send.rb
+++ b/lib/plugins/notify-send.rb
@@ -15,7 +15,7 @@ Termtter::Client.register_hook(
text << %Q|\n<a href="http://twitter.com/">more...</a>| if statuses.size > max
- system 'notify-send', '-t', '60000', '--', 'Termtter', text
+ system 'notify-send', '-t', '60000', '--', 'Termtter', text unless text.empty?
end
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment