cinch-hangouts 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -81,12 +81,13 @@ module Cinch::Plugins
81
81
 
82
82
  def list_hangouts(m)
83
83
  Hangout.delete_expired(@expire)
84
- hangouts = Hangout.sorted
85
- m.user.notice 'No hangouts have been linked recently!' if hangouts.empty?
86
-
84
+ if Hangout.sorted.empty?
85
+ m.user.notice 'No hangouts have been linked recently!'
86
+ return
87
+ end
87
88
  m.user.notice 'These hangouts have been linked in the last ' +
88
89
  "#{@expire} minutes. They may or may not still be going."
89
- hangouts.each do |hangout|
90
+ Hangout.sorted.each do |hangout|
90
91
  m.user.notice "#{hangout.nick} started a hangout at " +
91
92
  Hangout.url(hangout.id) +
92
93
  " it was last linked #{hangout.time.ago.to_words}"
@@ -3,7 +3,7 @@ module Cinch
3
3
  module Plugins
4
4
  # Versioning Info
5
5
  class Hangouts
6
- VERSION = '1.0.2'
6
+ VERSION = '1.0.3'
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cinch-hangouts
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-12-10 00:00:00.000000000 Z
12
+ date: 2014-02-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake