Skip to content

Commit

Permalink
Release 0.0.3.1
Browse files Browse the repository at this point in the history
  • Loading branch information
denzow committed Jan 20, 2016
1 parent 40a2088 commit 66e8118
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion ipymessenger/IpmsgServer.py
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,7 @@ def send_message(self, to_addr, msg, is_secret=False):
メッセージを送信する。実際は送信待ちキューへの追加
:param to_addr:送信先アドレス
:param msg:送るメッセージの文字列
:param is_secret: 封書として送るか
:return:送信完了追跡用のパケット番号
"""
# Ver(1) : Packet No : MyUserName : MyHostName : Command : Extra
Expand All @@ -206,6 +207,7 @@ def send_message_by_nickname(self, nickname, msg, is_secret=False):
ユーザリストのニックネーム指定でメッセージを送信する
:param nickname: 送信対象のユーザ名
:param msg: 送るメッセージの文字列
:param is_secret: 封書として送るか
:return: 送信完了追跡用のパケット番号
"""
# Ver(1) : Packet No : MyUserName : MyHostName : Command : Extra
Expand All @@ -223,6 +225,7 @@ def send_message_by_fuzzy_nickname(self, nickname, msg, is_secret=False):
ただしユーザ名は空白違いなどをある程度無視できる
:param nickname: 送信対象のユーザ名
:param msg: 送るメッセージの文字列
:param is_secret: 封書として送るか
:return: 送信完了追跡用のパケット番号
"""
# Ver(1) : Packet No : MyUserName : MyHostName : Command : Extra
Expand Down Expand Up @@ -252,6 +255,7 @@ def send_message_by_osusername(self, username, msg, is_secret=False):
ユーザリストのニックネーム指定でメッセージを送信する
:param username: 送信対象のユーザ名
:param msg: 送るメッセージの文字列
:param is_secret: 封書として送るか
:return: 送信完了追跡用のパケット番号
"""
# Ver(1) : Packet No : MyUserName : MyHostName : Command : Extra
Expand Down Expand Up @@ -596,7 +600,7 @@ def _get_packet_no(self):
"""
self.packet_no += 1
# msg is not int. so packet_no must be str too.
return unicode(self.packet_no)
return self.packet_no.decode("utf-8")

def _send(self, ip_msg):
"""
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

setup(
name="ipymessenger",
version="0.0.3",
version="0.0.3.1",
description="ip messenger library fro python",
url="https://github.com/denzow/ipymessenger",
license="MIT",
Expand Down

0 comments on commit 66e8118

Please sign in to comment.