Commit 832749b8 authored by Andreas Nedbal's avatar Andreas Nedbal

Merge pull request #12 from nilsding/master

tell the IRC users in which channel the bot currently is in
parents 80ef6900 47570a7e
......@@ -98,6 +98,7 @@ def start(irc, mumble)
case command
when 'users'
irc.send_message(, "There are currently #{mumble.users.count - 1} users connected to #{APP_CONFIG['mumble']['server']}")
irc.send_message(, "I'm currently in the channel \x02#{}\x0f.")
unless mumble.users.count == 0
mumble.users.each do |user|
unless user[1].name == APP_CONFIG['mumble']['username']
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment