Sha256: 446255d2aeb339e85e62f358721525402411f2dd0f8234904faeea4d257e04f5
Contents?: true
Size: 477 Bytes
Versions: 1
Compression:
Stored size: 477 Bytes
Contents
module Artaius module Plugins class Autoopper # Gives an op for everyone, who has a Guard role in King Arthur's Gold # and registered. include Cinch::Plugin listen_to :join def listen(m) return if m.user.nick == bot.nick m.channel.op(m.user) if guard?(m.user.authname) end def guard?(irc_authname) Player.filter(:irc_authname => irc_authname).select_map(:role).first == 2 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
artaius-0.2.1 | lib/artaius/plugins/autoopper.rb |