Permalink
Browse files

fix: remove trash from source

  • Loading branch information...
disabler committed Jul 1, 2012
1 parent 33b0591 commit 2deb2f5d533aeddfb9a15fd47f5aeb6d6960f67e
Showing with 2 additions and 2 deletions.
  1. +1 −1 plugins/blacklist.py
  2. +1 −1 plugins/www.py
@@ -54,7 +54,7 @@ def blacklist(type, jid, nick, text):
cur_execute('insert into blacklist values (%s)', (room,))
msg += L('Add to blacklist: %s') % room
elif room and cmd == 'del':
if cur_execute_fetchone('select * from blacklist where room=%s', (room,)):
if cur_execute_fetchone('select * from blacklist where room=%s', (room,)):
cur_execute('delete from blacklist where room=%s', (room,))
msg = L('Removed from blacklist: %s') % room
else: msg = L('Address not in blacklist.')
@@ -46,7 +46,7 @@ def rss_search(type, jid, nick, text):
m = []
for t in l:
rss_type = get_subtag(t,'type')
if rss_type in ['application/rss+xml','application/atom+xml']:
if rss_type in ['application/rss+xml','application/atom+xml']:
if rss_type == 'application/rss+xml': rss_type = 'RSS'
else: rss_type = 'ATOM'
rss_title = get_subtag(t,'title')

0 comments on commit 2deb2f5

Please sign in to comment.