Created
March 29, 2012 14:23
-
-
Save no6v/2237938 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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