1

fix: replace site name

This commit is contained in:
diSabler
2017-02-25 10:20:44 +03:00
parent 2d0c0abd30
commit ff7efea49b
7 changed files with 15 additions and 15 deletions

View File

@@ -5,7 +5,7 @@
# #
# Plugin for iSida Jabber Bot #
# Copyright (C) diSabler <dsy@dsy.name> #
# Copyright (C) dr.Schmurge <dr.schmurge@isida-bot.com> #
# Copyright (C) dr.Schmurge <dr.schmurge@isida.dsy.name> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #

View File

@@ -5,7 +5,7 @@
# #
# Plugin for iSida Jabber Bot #
# Copyright (C) diSabler <dsy@dsy.name> #
# Copyright (C) dr.Schmurge <dr.schmurge@isida-bot.com> #
# Copyright (C) dr.Schmurge <dr.schmurge@isida.dsy.name> #
# #
# This program is free software: you can redistribute it and/or modify #
# it under the terms of the GNU General Public License as published by #

View File

@@ -135,7 +135,7 @@ def msg_logger(room,jid,nick,type,text,logfile):
else: msg_type = '<span class="nick">%s:&nbsp;</span><span class="text">%s</span></p>\n'
log_body += ['%s: %s\n',msg_type][GT('html_logs_enable')] % (nick,text)
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+'</title></head><body><div class="main"><div class="top"><div class="heart"><a href="http://isida-bot.com">http://isida-bot.com</a></div><div class="conference">'+lht+'</div></div><div class="container">\n'][GT('html_logs_enable')]
log_he = ['%s\t\thttp://isida.dsy.name\n\n' % lht,log_header+lht+'</title></head><body><div class="main"><div class="top"><div class="heart"><a href="http://isida.dsy.name">http://isida.dsy.name</a></div><div class="conference">'+lht+'</div></div><div class="container">\n'][GT('html_logs_enable')]
try: log_he += initial_log_users(room,ott) + ['[%s] ' % ott,'<p><a id="%s" name="%s" href="#%s" class="time">%s</a> ' % (ott,ott,ott,ott)][GT('html_logs_enable')] + ['*** %s\n','<span class="topic">%s</span></p>'][GT('html_logs_enable')] % [topics[room],html_escape(topics[room]).replace('\n','<br/>')][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' % ['','</span></p>'][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+'</title></head><body><div class="main"><div class="top"><div class="heart"><a href="http://isida-bot.com">http://isida-bot.com</a></div><div class="conference">'+lht+'</div></div><div class="container">\n'][GT('html_logs_enable')]
log_he = ['%s\t\thttp://isida.dsy.name\n\n' % lht,log_header+lht+'</title></head><body><div class="main"><div class="top"><div class="heart"><a href="http://isida.dsy.name">http://isida.dsy.name</a></div><div class="conference">'+lht+'</div></div><div class="container">\n'][GT('html_logs_enable')]
try: log_he += initial_log_users(room,ott) + ['[%s] ' % ott,'<p><a id="%s" name="%s" href="#%s" class="time">%s</a> ' % (ott,ott,ott,ott)][GT('html_logs_enable')] + ['*** %s\n','<span class="topic">%s</span></p>'][GT('html_logs_enable')] % [topics[room],html_escape(topics[room]).replace('\n','<br/>')][GT('html_logs_enable')]
except: pass
write_log_with_end(logfile+room,curr_file,log_body,log_he)

View File

@@ -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):