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)
|
splitpos = text.rfind(' ', 0, splitspace)
|
||||||
splittext = text[0:splitpos] + ' ' + splitter
|
splittext = text[0:splitpos] + ' ' + splitter
|
||||||
text = splitter + ' ' + text[splitpos+1:]
|
text = splitter + ' ' + text[splitpos+1:]
|
||||||
# unnecessary?
|
|
||||||
#try:
|
|
||||||
# splittext = unicode(splittext).encode('utf-8')
|
|
||||||
#except UnicodeDecodeError: pass
|
|
||||||
self.send_raw("PRIVMSG %s :%s" % (target, splittext))
|
self.send_raw("PRIVMSG %s :%s" % (target, splittext))
|
||||||
|
|
||||||
times = times + 1
|
times = times + 1
|
||||||
@ -61,16 +57,8 @@ class DrBotServerConnection(irclib.ServerConnection):
|
|||||||
return
|
return
|
||||||
|
|
||||||
# done splitting
|
# done splitting
|
||||||
# unnecessary?
|
|
||||||
#try:
|
|
||||||
# text = unicode(text).encode('utf-8')
|
|
||||||
#except UnicodeDecodeError: pass
|
|
||||||
self.send_raw("PRIVMSG %s :%s" % (target, text))
|
self.send_raw("PRIVMSG %s :%s" % (target, text))
|
||||||
else:
|
else:
|
||||||
# unnecessary?
|
|
||||||
#try:
|
|
||||||
# text = unicode(text).encode('utf-8')
|
|
||||||
#except UnicodeDecodeError: pass
|
|
||||||
self.send_raw("PRIVMSG %s :%s" % (target, text))
|
self.send_raw("PRIVMSG %s :%s" % (target, text))
|
||||||
|
|
||||||
class DrBotIRC(irclib.IRC):
|
class DrBotIRC(irclib.IRC):
|
||||||
@ -88,7 +76,6 @@ if len(sys.argv) != 2:
|
|||||||
# read config file
|
# read config file
|
||||||
|
|
||||||
config = ConfigParser({'debug': 'false'})
|
config = ConfigParser({'debug': 'false'})
|
||||||
#config.read([os.path.expanduser('~/.dr.botzo.cfg'), 'dr.botzo.cfg'])
|
|
||||||
config.read(os.path.expanduser(sys.argv[1]))
|
config.read(os.path.expanduser(sys.argv[1]))
|
||||||
|
|
||||||
# load necessary options
|
# load necessary options
|
||||||
|
Loading…
x
Reference in New Issue
Block a user