Skip to content

Commit

Permalink
Fix minor errors
Browse files Browse the repository at this point in the history
  • Loading branch information
David Rorex committed Apr 29, 2016
1 parent 4b8a406 commit 049cdc3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pickups/ircgateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,11 @@ def irc_PRIVMSG(self, prefix, params):
channel = params[0]
message = ' '.join(params[1:])

print("from IRC #"+channel+": "+message)
print(("from IRC #"+channel+": "+message).encode('utf-8'))
message = re.sub('\x01','',message)
message = re.sub(r'^ACTION ', '/me ', message)
message = util.ascii_to_smileys(message)
print("Converted: "+message)
print(("Converted: "+message).encode('utf-8'))
conv = util.channel_to_conversation(channel, self._conv_list)
self.sent_messages.append(message)
segments = hangups.ChatMessageSegment.from_str(message)
Expand Down
2 changes: 1 addition & 1 deletion run.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def runit():

parser = argparse.ArgumentParser(description='IRC Gateway for Hangouts')
parser.add_argument('--address', help='bind address', default='127.0.0.1')
parser.add_argument('--port', help='bind port', default=6667)
parser.add_argument('--port', help='bind port', default=6667, type=int)
parser.add_argument('--ascii-smileys', action='store_true',
help='display smileys in ascii')
args = parser.parse_args()
Expand Down

0 comments on commit 049cdc3

Please sign in to comment.