Skip to content

Commit

Permalink
StatusOutput: Local系の出力で、接続中のサーバー名を表示
Browse files Browse the repository at this point in the history
  • Loading branch information
koi-chan committed Jul 12, 2015
1 parent 6e86548 commit c15cf3b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/rgrb/plugin/status_output/irc_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -82,13 +82,13 @@ def local_connections(m)
%r{I have (\d+) clients and (\d+) servers}
) { |md|
#print("ircLocalClients.value #{md[1]}\n")
print("ircLocalServers.value #{md[2]}\n")
print("ircLocalServers_#{@servername[m.server]}.value #{md[2]}\n")
}
end

def local_users(m)
print("ircLocalCurrentUsers.value #{m.params[1]}\n")
print("ircLocalMaxUsers.value #{m.params[2]}\n")
print("ircLocalCurrentUsers_#{@servername[m.server]}.value #{m.params[1]}\n")
print("ircLocalMaxUsers_#{@servername[m.server]}.value #{m.params[2]}\n")
end

def global_users(m)
Expand Down

0 comments on commit c15cf3b

Please sign in to comment.