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. --- example.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'example.rb') diff --git a/example.rb b/example.rb index cd09859..6308cce 100644 --- a/example.rb +++ b/example.rb @@ -35,6 +35,10 @@ class TestBot < Bocelli::Base on 'current' do out '%s %s' % [@bocelli[:str].inspect, @bocelli[:route].inspect] end + + on 'user' do + out @bocelli[:metadata][:user] + end end TestBot.configure('chat.freenode.net', 6667, 'bocelli%03d' % rand(1000)) -- cgit v1.2.3-70-g09d2