Sha256: 5356847f37f1e4915aaddeba39957fa6360a42af298b55e180bbca4ee2f996dd
Contents?: true
Size: 727 Bytes
Versions: 8
Compression:
Stored size: 727 Bytes
Contents
core.help_add('admin', 'join', 'join (chans|sep=,) [pass]', 'Joins given chans') hook(type: :command, cmd: 'join') do |dat| if dat[:split].empty? m.nreply 'Not enough parameters!' else (pass = dat[:split][1]) || '' chans = dat[:split][0].split(',') chans.each do |chan| dat[:plug].join(chan, pass) end end end.perm!('joinpart') core.help_add('admin', 'part', 'part (chans|sep=,) [reason]', 'Parts given chans') hook(type: :command, cmd: 'part') do |dat| if dat[:split].empty? dat[:plug].part(dat[:target], '') else (reason = dat[:split][1]) || '' chans = dat[:split][0].split(',') chans.each do |chan| dat[:plug].part(chan, reason) end end end.perm!('joinpart')
Version data entries
8 entries across 8 versions & 1 rubygems