Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilip H.F. "FiXato" Slagter <fixato@gmail.com>2012-06-12 02:07:07 +0200
committerFilip H.F. "FiXato" Slagter <fixato@gmail.com>2012-06-12 02:07:07 +0200
commit04aa153b0b9b150ca350ec40b044d86a60c06b30 (patch)
tree13b7332afb183f166ec6974ee991cab3011e4734
parent7af5c60e2afbf9df4fff8f8dcc9478901bab6462 (diff)
Bugfix: forgot to strip the newlines from channellocations
-rwxr-xr-xlogbot.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/logbot.py b/logbot.py
index 0e465da..c8411d2 100755
--- a/logbot.py
+++ b/logbot.py
@@ -383,7 +383,7 @@ class Logbot(SingleServerIRCBot):
self.channel_locations = {}
if os.path.exists(CHANNEL_LOCATIONS_FILE):
f = open(CHANNEL_LOCATIONS_FILE, 'r')
- self.channel_locations = dict((k.lower(), v) for k, v in dict([line.split(None,1) for line in f.readlines()]).iteritems())
+ self.channel_locations = dict((k.lower(), v) for k, v in dict([line.strip().split(None,1) for line in f.readlines()]).iteritems())
def connect_ftp():
print "Using FTP %s..." % (FTP_SERVER)