remove some stuff that's been commented out for a while now
This commit is contained in:
parent
2f90304a47
commit
00d5502477
13
dr.botzo.py
13
dr.botzo.py
|
@ -50,10 +50,6 @@ class DrBotServerConnection(irclib.ServerConnection):
|
|||
splitpos = text.rfind(' ', 0, splitspace)
|
||||
splittext = text[0:splitpos] + ' ' + splitter
|
||||
text = splitter + ' ' + text[splitpos+1:]
|
||||
# unnecessary?
|
||||
#try:
|
||||
# splittext = unicode(splittext).encode('utf-8')
|
||||
#except UnicodeDecodeError: pass
|
||||
self.send_raw("PRIVMSG %s :%s" % (target, splittext))
|
||||
|
||||
times = times + 1
|
||||
|
@ -61,16 +57,8 @@ class DrBotServerConnection(irclib.ServerConnection):
|
|||
return
|
||||
|
||||
# done splitting
|
||||
# unnecessary?
|
||||
#try:
|
||||
# text = unicode(text).encode('utf-8')
|
||||
#except UnicodeDecodeError: pass
|
||||
self.send_raw("PRIVMSG %s :%s" % (target, text))
|
||||
else:
|
||||
# unnecessary?
|
||||
#try:
|
||||
# text = unicode(text).encode('utf-8')
|
||||
#except UnicodeDecodeError: pass
|
||||
self.send_raw("PRIVMSG %s :%s" % (target, text))
|
||||
|
||||
class DrBotIRC(irclib.IRC):
|
||||
|
@ -88,7 +76,6 @@ if len(sys.argv) != 2:
|
|||
# read config file
|
||||
|
||||
config = ConfigParser({'debug': 'false'})
|
||||
#config.read([os.path.expanduser('~/.dr.botzo.cfg'), 'dr.botzo.cfg'])
|
||||
config.read(os.path.expanduser(sys.argv[1]))
|
||||
|
||||
# load necessary options
|
||||
|
|
Loading…
Reference in New Issue