Sha256: 2dc0d6bbc96695949d629bfefa85cca07547f773fb476702a7f0cf13465c54e9

Contents?: true

Size: 202 Bytes

Versions: 8

Compression:

Stored size: 202 Bytes

Contents

hook(type: :code, code: @numeric::TOPIC) do |dat|
  m = /(.+?) :(.+)/.match(dat[:extra])
  unless dat[:plug].chans[m[1]]
    dat[:plug].chans[m[1]] = {}
  end
  dat[:plug].chans[m[1]][:topic] = m[2]
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
protonbot-0.3.7 lib/protonbot/core_plugin/codes/topic.rb
protonbot-0.3.6 lib/protonbot/core_plugin/codes/topic.rb
protonbot-0.3.5 lib/protonbot/core_plugin/codes/topic.rb
protonbot-0.3.4 lib/protonbot/core_plugin/codes/topic.rb
protonbot-0.3.3 lib/protonbot/core_plugin/codes/topic.rb
protonbot-0.3.2 lib/protonbot/core_plugin/codes/topic.rb
protonbot-0.3.1 lib/protonbot/core_plugin/codes/topic.rb
protonbot-0.3.0 lib/protonbot/core_plugin/codes/topic.rb