summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-08-07 00:08:56 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2008-08-07 00:08:56 +0200
commited15b7b97190d86d741e27b7d52dee6a796e694e (patch)
treee648fa5b80a68cdf2dd3a281f942f36d758ba6b7
parentc76d468894bbf617eaee2f1e8029194a2a1a27d5 (diff)
wow plugin: fix realm extraction xpath
-rw-r--r--data/rbot/plugins/wow.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/wow.rb b/data/rbot/plugins/wow.rb
index e1c7a4a4..1350dd1a 100644
--- a/data/rbot/plugins/wow.rb
+++ b/data/rbot/plugins/wow.rb
@@ -90,7 +90,7 @@ class RealmPlugin < Plugin
xmldoc = @bot.httputil.get("http://www.worldofwarcraft.com/realmstatus/status.xml", :cache => false)
raise "unable to retrieve realm status" unless xmldoc
realm_list = (REXML::Document.new xmldoc).root
- realm_data = realm_list.elements["r[@n=\"#{realm_name}\"]"]
+ realm_data = realm_list.get_elements("//r[@n=\"#{realm_name}\"]").first
if realm_data and realm_data.attributes.any? then
realm = Realm.new(
realm_data.attributes['n'],