commit: 0d704e295f5beabe1fc33d6e3777f4006a304678
Author: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Tue Nov 22 04:11:28 2016 +0000
Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Tue Nov 22 04:11:37 2016 +0000
URL: https://gitweb.gentoo.org/proj/rbot-gentoo.git/commit/?id=0d704e29
expn: fix split out output per bug #600388
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
gentoo-data.rb | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/gentoo-data.rb b/gentoo-data.rb
index e37d376..57cf6e6 100644
--- a/gentoo-data.rb
+++ b/gentoo-data.rb
@@ -215,7 +215,7 @@ class GentooPlugin < Plugin
#res = @bot.httputil.get('https://dev.gentoo.org/~solar/.alias')
res = @bot.httputil.get('https://dev.gentoo.org/.alias.cache')
alias_hash = {}
- for line in res
+ for line in res.split("\n")
split_line = line.split(' = ')
alias_hash[split_line[0]] = split_line[1]
end