diff options
Diffstat (limited to 'zwgc')
-rw-r--r-- | zwgc/notice.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/zwgc/notice.c b/zwgc/notice.c index e3d4cdb..4e09167 100644 --- a/zwgc/notice.c +++ b/zwgc/notice.c @@ -269,7 +269,7 @@ char *decode_notice(notice, hostname) var_set_variable("recipient", (notice->z_recipient[0] ? notice->z_recipient : "*")); var_set_variable("fullsender", notice->z_sender); - var_set_variable_to_number("port", (int)notice->z_port); + var_set_variable_to_number("port", (int)ntohs(notice->z_port)); var_set_variable_then_free_value("kind", z_kind_to_ascii(notice->z_kind)); var_set_variable_then_free_value("auth", z_auth_to_ascii(notice->z_auth)); |