summaryrefslogtreecommitdiff
path: root/bocelli/base.rb
diff options
context:
space:
mode:
authorDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-08-18 21:23:33 -0700
committerDavid Vazgenovich Shakaryan <dvshakaryan@gmail.com>2014-08-18 21:23:33 -0700
commit5900db6fa61e2c6537e6a33bd3be61d50812c5a6 (patch)
tree62d27a746a94792a71b36f32f0305d6f0c769699 /bocelli/base.rb
parente7c5efe56e51b6c7911d5b96955a989cf0c0a092 (diff)
downloadbocelli-5900db6fa61e2c6537e6a33bd3be61d50812c5a6.tar.gz
bocelli-5900db6fa61e2c6537e6a33bd3be61d50812c5a6.tar.xz
Do not include colon prefix in user metadata.
Diffstat (limited to 'bocelli/base.rb')
-rw-r--r--bocelli/base.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/bocelli/base.rb b/bocelli/base.rb
index bea8959..e4998c1 100644
--- a/bocelli/base.rb
+++ b/bocelli/base.rb
@@ -53,7 +53,7 @@ module Bocelli
end
def process(str)
- if str =~ /\A(\S+) PRIVMSG (\S+) :?(.*)/
+ if str =~ /\A:?(\S+) PRIVMSG (\S+) :?(.*)/
metadata = {
user: $1,
channel: $2,