Skip to content

Instantly share code, notes, and snippets.

@no6v
Created March 29, 2012 14:23
Show Gist options
  • Save no6v/2237938 to your computer and use it in GitHub Desktop.
Save no6v/2237938 to your computer and use it in GitHub Desktop.
diff --git a/lib/earthquake/input.rb b/lib/earthquake/input.rb
index 870cefc..c91519c 100644
--- a/lib/earthquake/input.rb
+++ b/lib/earthquake/input.rb
@@ -141,6 +141,7 @@ module Earthquake
end
input_filter do |text|
+ next text if text.sub!(/\A: /, "")
if text =~ %r|^(:\w+)|
if target = command_aliases[$1]
text = text.sub(%r|^:\w+|, target)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment