From 5900db6fa61e2c6537e6a33bd3be61d50812c5a6 Mon Sep 17 00:00:00 2001 From: David Vazgenovich Shakaryan Date: Mon, 18 Aug 2014 21:23:33 -0700 Subject: Do not include colon prefix in user metadata. --- bocelli/base.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bocelli') 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, -- cgit v1.2.3-70-g09d2