~ehmry/nim_tox

fb47a052270be2efd1105c84b46372e2797cd4ef — Emery Hemingway 1 year, 11 months ago b4ccf30
Use type inference for "send"
1 files changed, 2 insertions(+), 2 deletions(-)

M src/toxcore.nim
M src/toxcore.nim => src/toxcore.nim +2 -2
@@ 798,7 798,7 @@ type Tox_Err_Friend_Send_Message = enum
    TOX_ERR_FRIEND_SEND_MESSAGE_TOO_LONG,
    TOX_ERR_FRIEND_SEND_MESSAGE_EMPTY

proc sendMessage*(tox: Tox; friend: Friend; msg: string; kind = TOX_MESSAGE_TYPE_NORMAL): MessageId {.tags: [IOEffect].} =
proc send*(tox: Tox; friend: Friend; msg: string; kind = TOX_MESSAGE_TYPE_NORMAL): MessageId {.tags: [IOEffect].} =
  ## Send a message to a friend.
  proc friend_send_message(
    core: Core; friend: Friend;


@@ 1206,7 1206,7 @@ type Tox_Err_Conference_Send_Message = enum
    TOX_ERR_CONFERENCE_SEND_MESSAGE_NO_CONNECTION,
    TOX_ERR_CONFERENCE_SEND_MESSAGE_FAIL_SEND

proc sendMessage*(tox: Tox; conf: Conference; kind: TOX_MESSAGE_TYPE; msg: string) {.tags: [IOEffect].} =
proc send*(tox: Tox; conf: Conference; kind: TOX_MESSAGE_TYPE; msg: string) {.tags: [IOEffect].} =
  proc conference_send_message(
    core: Core; conf: Conference;
    kind: TOX_MESSAGE_TYPE; message: cstring;