summaryrefslogtreecommitdiff
path: root/src/plugins/relay
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2013-03-13 11:50:32 +0100
committerSebastien Helleu <flashcode@flashtux.org>2013-03-13 11:50:32 +0100
commit7672139d6bb9be68ab4a61d3706bae6710173bb3 (patch)
treeb8a6e8375d459abb1c9815bd9eaefc20383ddab2 /src/plugins/relay
parentaa2f5d8acca8b70484da8c0e5f3adcd629f38fcc (diff)
downloadweechat-7672139d6bb9be68ab4a61d3706bae6710173bb3.zip
relay: add negative numbers (integer: -123456 and long: -1234567890L) in command "test" (weechat protocol)
Diffstat (limited to 'src/plugins/relay')
-rw-r--r--src/plugins/relay/weechat/relay-weechat-protocol.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/relay/weechat/relay-weechat-protocol.c b/src/plugins/relay/weechat/relay-weechat-protocol.c
index 0f0f25546..b693e8b94 100644
--- a/src/plugins/relay/weechat/relay-weechat-protocol.c
+++ b/src/plugins/relay/weechat/relay-weechat-protocol.c
@@ -1035,10 +1035,18 @@ RELAY_WEECHAT_PROTOCOL_CALLBACK(test)
relay_weechat_msg_add_type (msg, RELAY_WEECHAT_MSG_OBJ_INT);
relay_weechat_msg_add_int (msg, 123456);
+ /* integer (negative) */
+ relay_weechat_msg_add_type (msg, RELAY_WEECHAT_MSG_OBJ_INT);
+ relay_weechat_msg_add_int (msg, -123456);
+
/* long */
relay_weechat_msg_add_type (msg, RELAY_WEECHAT_MSG_OBJ_LONG);
relay_weechat_msg_add_long (msg, 1234567890L);
+ /* long (negative) */
+ relay_weechat_msg_add_type (msg, RELAY_WEECHAT_MSG_OBJ_LONG);
+ relay_weechat_msg_add_long (msg, -1234567890L);
+
/* string */
relay_weechat_msg_add_type (msg, RELAY_WEECHAT_MSG_OBJ_STRING);
relay_weechat_msg_add_string (msg, "a string");