From 9bda2f3e5e9556f218cfc558629a05d6ed950168 Mon Sep 17 00:00:00 2001 From: capgelka Date: Sun, 24 Apr 2016 20:03:24 +0400 Subject: [PATCH] fixed regexp in horo.py --- plugins/horo.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/horo.py b/plugins/horo.py index ca64b93..82045db 100644 --- a/plugins/horo.py +++ b/plugins/horo.py @@ -39,7 +39,8 @@ def handler_horoscope(type, jid, nick, text): if param in [L(t) for t in horodb] or param in horodb: if param not in horodb: param = dict([[L(t),t] for t in horodb])[param] body = html_encode(load_page('http://horo.mail.ru/prediction/%s/today' % param)) - try: msg = unhtml_hard(re.findall('
(.+?)
',body,re.S|re.I|re.U)[0].strip()) + try: msg = unhtml_hard(re.findall('
(.+?)
',body,re.S|re.I|\ +re.U)[0].strip()) except: msg = L('Unknown error!','%s/%s'%(jid,nick)) if type=='groupchat': send_msg('chat', jid, nick, msg)