Sha256: 6a7348a41fe7129367f2508ed78570abbba4507c7163d033e23271895ce40ac7

Contents?: true

Size: 260 Bytes

Versions: 8

Compression:

Stored size: 260 Bytes

Contents

hook(type: :utopic) do |dat|
  dat[:plug].users[dat[:nick]] = dat[:plug].users[dat[:nick]] or {}
  u = dat[:plug].users[dat[:nick]]
  u[:nick] = dat[:nick]
  u[:user] = dat[:user]
  u[:host] = dat[:host]
  dat[:plug].chans[dat[:chan]][:topic] = dat[:topic]
end

Version data entries

8 entries across 8 versions & 1 rubygems

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