Skip to content

Commit

Permalink
Merge pull request #136 from fake-name/patch-1
Browse files Browse the repository at this point in the history
The IRC Server object should probably have a somewhat better __repr__
  • Loading branch information
jaraco committed Jan 29, 2018
2 parents 25d8e9d + 79c3457 commit c17a069
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions irc/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ def __init__(self, host, port=6667, password=None):
self.port = port
self.password = password

def __repr__(self):
return "<irc.bot.ServerSpec for server %s:%s %s>" % (
self.host, self.port, "with password" if self.password else "without password")


@six.add_metaclass(abc.ABCMeta)
class ReconnectStrategy(object):
Expand Down

0 comments on commit c17a069

Please sign in to comment.