%s ' % (ott,ott,ott,ott)][GT('html_logs_enable')] + ['*** %s\n','%s
'][GT('html_logs_enable')] % [topics[room],html_escape(topics[room]).replace('\n','')][GT('html_logs_enable')] except: pass write_log_with_end(logfile+room,curr_file,log_body,log_he) @@ -203,7 +203,7 @@ def presence_logger(room,jid,nick,type,mass,mode,logfile): if text != 'None': log_body += ' (%s)' % text log_body += '%s\n' % ['',''][GT('html_logs_enable')] lht = '%s - %02d/%02d/%02d' % (room,lt[0],lt[1],lt[2]) - log_he = ['%s\t\thttp://isida-bot.com\n\n' % lht,log_header+lht+'
%s ' % (ott,ott,ott,ott)][GT('html_logs_enable')] + ['*** %s\n','%s
'][GT('html_logs_enable')] % [topics[room],html_escape(topics[room]).replace('\n','')][GT('html_logs_enable')] except: pass write_log_with_end(logfile+room,curr_file,log_body,log_he) diff --git a/plugins/main.py b/plugins/main.py index f65300c..56feed6 100644 --- a/plugins/main.py +++ b/plugins/main.py @@ -664,7 +664,7 @@ def info_comm(type, jid, nick): def helpme(type, jid, nick, text): text = text.strip().lower() - if text == 'about': msg = u'Isida Jabber Bot | © 2oo9-%s Disabler Production Lab. | http://isida-bot.com' % str(time.localtime()[0]).replace('0','o') + if text == 'about': msg = u'iSida Jabber Bot | © 2oo9-%s Disabler Production Lab. | http://isida.dsy.name' % str(time.localtime()[0]).replace('0','o') elif text in ['donation','donations']: msg = L('Send donation to: %sBest regards, %s','%s/%s'%(jid,nick)) % ('\nYandexMoney: 41001384336826\nWMZ: Z392970180590\nWMR: R378494692310\nWME: E164241657651\n','Disabler') elif text in [L('access','%s/%s'%(jid,nick)),'access']: msg = L('Bot has next access levels:\n-1 - ignored\n0 - minimal access\n1 - at least visitor and none\n2 - at least visitor and member\n3 - at least participant and none\n4 - at least participant and member\n5 - at least moderator and none\n6 - at least moderator and member\n7 - at least moderator and admin\n8 - at least moderator and owner\n9 - bot owner','%s/%s'%(jid,nick)) elif len(text) > 1: @@ -687,7 +687,7 @@ def helpme(type, jid, nick, text): for tmp in tm: if tmp[0] == i and tmp[2] != '': tmsg.append(unicode(tmp[1])) if len(tmsg): msg += u'[%s]…%s\n' % (i,', '.join(tmsg)) - else: msg = L('%s Help for command: help command | Commands list: commands','%s/%s'%(jid,nick)) % (u'Isida Jabber Bot | http://isida-bot.com | © 2oo9-'+str(time.localtime()[0]).replace('0','o')+' Disabler Production Lab. |') + else: msg = L('%s Help for command: help command | Commands list: commands','%s/%s'%(jid,nick)) % (u'iSida Jabber Bot | http://isida.dsy.name | © 2oo9-'+str(time.localtime()[0]).replace('0','o')+' Disabler Production Lab. |') send_msg(type, jid, nick, msg) def bot_rejoin(type, jid, nick, text):