summaryrefslogtreecommitdiff
path: root/src/plugins/relay
diff options
context:
space:
mode:
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");