aboutsummaryrefslogtreecommitdiff
path: root/protocols
diff options
context:
space:
mode:
authorTest_User <hax@andrewyu.org>2024-06-12 19:04:16 -0400
committerTest_User <hax@andrewyu.org>2024-06-12 19:04:16 -0400
commita785916b1840dca3acec39d17f454a00975282a0 (patch)
tree338109f8ab63dfa6787ccf65a9557fd39a13776d /protocols
parent47d7e30f6acb1c170c8e5e15f2656b89a33384f7 (diff)
downloadhaxircd-a785916b1840dca3acec39d17f454a00975282a0.tar.gz
haxircd-a785916b1840dca3acec39d17f454a00975282a0.zip
str_clone finally, as well as some other stuff
Diffstat (limited to 'protocols')
-rw-r--r--protocols/inspircd2.c23
1 files changed, 2 insertions, 21 deletions
diff --git a/protocols/inspircd2.c b/protocols/inspircd2.c
index 883dbc5..0650c7d 100644
--- a/protocols/inspircd2.c
+++ b/protocols/inspircd2.c
@@ -541,17 +541,7 @@ void inspircd2_protocol_propagate_new_user(struct string from, struct user_info
networks[adjacent->net].send(adjacent->handle, STRING(" UID "));
networks[adjacent->net].send(adjacent->handle, info->uid);
networks[adjacent->net].send(adjacent->handle, STRING(" "));
-
- struct string timestamp;
- char err = unsigned_to_str(info->nick_ts, &timestamp);
-
- if (err) {
- networks[adjacent->net].send(adjacent->handle, STRING("1")); // TODO: Better fallback
- } else {
- networks[adjacent->net].send(adjacent->handle, timestamp);
- free(timestamp.data);
- }
-
+ networks[adjacent->net].send(adjacent->handle, info->nick_ts_str);
networks[adjacent->net].send(adjacent->handle, STRING(" "));
networks[adjacent->net].send(adjacent->handle, info->nick);
networks[adjacent->net].send(adjacent->handle, STRING(" "));
@@ -563,16 +553,7 @@ void inspircd2_protocol_propagate_new_user(struct string from, struct user_info
networks[adjacent->net].send(adjacent->handle, STRING(" "));
networks[adjacent->net].send(adjacent->handle, info->address);
networks[adjacent->net].send(adjacent->handle, STRING(" "));
-
- err = unsigned_to_str(info->user_ts, &timestamp);
-
- if (err) {
- networks[adjacent->net].send(adjacent->handle, STRING("1"));
- } else {
- networks[adjacent->net].send(adjacent->handle, timestamp);
- free(timestamp.data);
- }
-
+ networks[adjacent->net].send(adjacent->handle, info->user_ts_str);
networks[adjacent->net].send(adjacent->handle, STRING(" + :"));
networks[adjacent->net].send(adjacent->handle, info->fullname);
networks[adjacent->net].send(adjacent->handle, STRING("\n"));