Class: KAG::User::Plugin

Inherits:
Object
  • Object
show all
Includes:
Cinch::Commands, Cinch::Plugin, Common
Defined in:
lib/kag/user/plugin.rb

Instance Method Summary collapse

Methods included from Common

#_h, #debug, #is_admin, #is_banned?, #reply, #send_channels_msg

Methods included from Cinch::Commands

included

Instance Method Details

#stats_specific(m, nick) ⇒ Object



16
17
18
19
20
21
22
23
# File 'lib/kag/user/plugin.rb', line 16

def stats_specific(m,nick)
  user = User(nick)
  if user and !user.unknown
    reply m,KAG::User::User.stats(user)
  else
    reply m,"Could not find user #{nick}"
  end
end