diff options
-rw-r--r-- | data/rbot/plugins/wow.rb | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/data/rbot/plugins/wow.rb b/data/rbot/plugins/wow.rb index 1106d3cc..3b73414c 100644 --- a/data/rbot/plugins/wow.rb +++ b/data/rbot/plugins/wow.rb @@ -111,11 +111,15 @@ class RealmPlugin < Plugin tok.capitalize }.join(' ') @registry[m.sourcenick] = realm_name - m.reply Realm.get_realm_status(realm_name) + Thread.new do + m.reply Realm.get_realm_status(realm_name) + end else if @registry.has_key?(m.sourcenick) realm_name = @registry[m.sourcenick] - m.reply Realm.get_realm_status(realm_name) + Thread.new do + m.reply Realm.get_realm_status(realm_name) + end else m.reply "I don't know which realm you want.\n#{USAGE}" end |