Sha256: 07424cf831c31f294ea95ef10ab50acc30fba5e7f0327fe704393b0ee057fc85
Contents?: true
Size: 342 Bytes
Versions: 14
Compression:
Stored size: 342 Bytes
Contents
hook(type: :code, code: @numeric::WHOISUSER) do |dat| m = /(.+?) (.+?) (.+?) \* :.*/.match(dat[:extra]) dat[:plug].users[m[1]] = {} unless dat[:plug].users[m[1]] u = dat[:plug].users[m[1]] u[:nick] = m[1] u[:user] = m[2] u[:host] = m[3] emit(dat.merge(type: :code_whoisuser, nick: u[:nick], user: u[:user], host: u[:host])) end
Version data entries
14 entries across 14 versions & 1 rubygems