Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Simplify broadcasts in the profile

  • Loading branch information...
commit 5768812e3a84e9a2f063f79bad979240047b7bf1 1 parent 35e979f
meh. authored
Showing with 1 addition and 8 deletions.
  1. +0 −8 lib/torchat.rb
  2. +1 −0  lib/torchat/session/broadcasts.rb
8 lib/torchat.rb
View
@@ -210,12 +210,4 @@ def send_message_to (name, message)
def send_broadcast (message)
@session.broadcasts.send_message(message)
end
-
- def disable_broadcasts
- @session.broadcasts.disable!
- end
-
- def enable_broadcasts
- @session.broadcasts.enable!
- end
end
1  lib/torchat/session/broadcasts.rb
View
@@ -34,6 +34,7 @@ def initialize (session)
def disable!; @disabled = true; end
def enable!; @disabled = false; end
def disabled?; @disabled; end
+ def enabled?; !disabled?; end
def send_message (message)
received(message, true)
Please sign in to comment.
Something went wrong with that request. Please try again.