Skip to content
Snippets Groups Projects
Commit 1bede9da authored by Eric S. Raymond's avatar Eric S. Raymond
Browse files

Thinko fix.

parent 0d5323d2
No related branches found
No related tags found
No related merge requests found
......@@ -27,11 +27,7 @@ class Session():
url = url[6:]
parts = url.split(":", 1)
if len(parts) == 2:
try:
self.port = int(parts[1])
except ValueError:
print "Error: Erroneous port."
sys.exit(1)
self.port = int(parts[1])
else:
self.port = 6667
(self.server, self.channel) = parts[0].split("/", 1)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment