Skip to content

Instantly share code, notes, and snippets.

Created December 13, 2012 17:34
Show Gist options
  • Save anonymous/4278157 to your computer and use it in GitHub Desktop.
Save anonymous/4278157 to your computer and use it in GitHub Desktop.
class TF2Pug
include Cinch::Plugin
match /admin (.+)/, method: :cmd_admin
def cmd_admin(m, args = nil)
if m.channel == Const::IRC_mainchan
return m.user.send "Please append a message with your !admin call" if args == nil
Channel(Const::IRC_adminchan).msg "[CALLING ADMIN] #{m.user.nick}: #{args}"
m.user.send "We have received your message. An admin will respond as soon as possible", true
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment