Sha256: af7835dce70ede08890ad111a598d818d626d8cbcd8599ac56b227e5788b2838
Contents?: true
Size: 546 Bytes
Versions: 2
Compression:
Stored size: 546 Bytes
Contents
hook(type: :unick) do |dat| dat[:plug].chans.each do |k, chan| if chan[:users] and chan[:users].include? dat[:nick] emit(dat.merge(type: :unickc, channel: k)) end end u = nil if dat[:plug].users[dat[:nick]] u = dat[:plug].users[dat[:nick]].clone dat[:plug].users.delete(dat[:nick]) dat[:plug].users[dat[:to]] = u else u = {} dat[:plug].users[dat[:nick]] = u end 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
protonbot-0.3.7 | lib/protonbot/core_plugin/hooks/nick.rb |
protonbot-0.3.6 | lib/protonbot/core_plugin/hooks/nick.rb |