Skip to content
This repository has been archived by the owner on Sep 13, 2023. It is now read-only.

Commit

Permalink
fix: remove trash from source
Browse files Browse the repository at this point in the history
  • Loading branch information
disabler committed Jul 1, 2012
1 parent 33b0591 commit 2deb2f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion plugins/blacklist.py
Expand Up @@ -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.')
Expand Down
2 changes: 1 addition & 1 deletion plugins/www.py
Expand Up @@ -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')
Expand Down

0 comments on commit 2deb2f5

Please sign in to comment.