Sha256: 172f6ddb520d42f5643c9c8d3d2802ce171114f6467817f3334386bc979c9a7c

Contents?: true

Size: 276 Bytes

Versions: 12

Compression:

Stored size: 276 Bytes

Contents

hook(type: :unick) do |dat|
  u = dat[:plug].users[dat[:nick]].clone
  dat[:plug].users.delete(dat[:nick])
  dat[:plug].users[dat[:to]] = u
  u[:nick] = dat[:to]
  u[:user] = dat[:user]
  u[:host] = dat[:host]

  dat[:plug].nick = dat[:to] if dat[:nick] == dat[:plug].nick
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
protonbot-0.2.7 lib/protonbot/core_plugin/hooks/nick.rb
protonbot-0.2.6 lib/protonbot/core_plugin/hooks/nick.rb
protonbot-0.2.5 lib/protonbot/core_plugin/hooks/nick.rb
protonbot-0.2.4 lib/protonbot/core_plugin/hooks/nick.rb
protonbot-0.2.3 lib/protonbot/core_plugin/hooks/nick.rb
protonbot-0.2.2 lib/protonbot/core_plugin/hooks/nick.rb
protonbot-0.2.1 lib/protonbot/core_plugin/hooks/nick.rb
protonbot-0.2.0 lib/protonbot/core_plugin/hooks/nick.rb
protonbot-0.1.3 lib/protonbot/core_plugin/hooks/nick.rb
protonbot-0.1.2 lib/protonbot/core_plugin/hooks/nick.rb
protonbot-0.1.1 lib/protonbot/core_plugin/hooks/nick.rb
protonbot-0.1.0 lib/protonbot/core_plugin/hooks/nick.rb