about summary refs log tree commit diff
path: root/user.c
diff options
context:
space:
mode:
authorNakidai <nakidai@disroot.org>2026-01-06 04:01:24 +0300
committerNakidai <nakidai@disroot.org>2026-01-06 04:01:24 +0300
commit833c53b1ad3338677056445c32c490cac0a08875 (patch)
tree24e60715c46ff89c26c5efc254e036b84aebcb13 /user.c
parent78426afe18d9ce730a4d92033ca261f9b2f173a0 (diff)
downloadlibreircd-833c53b1ad3338677056445c32c490cac0a08875.tar.gz
libreircd-833c53b1ad3338677056445c32c490cac0a08875.zip
Add basic channels
Though they don't have modes, and JOIN/PART must be able to parse
comma separated list of channels
Diffstat (limited to 'user.c')
-rw-r--r--user.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/user.c b/user.c
index 4411144..e37452b 100644
--- a/user.c
+++ b/user.c
@@ -37,14 +37,6 @@ user_reg(struct Peer *peer, const char *nick, const char *user, const char *real
 	if (*peer->nick && *peer->user && *peer->real)
 	{
 		peer->type = CLIENT;
-		writef(
-			peer->fd,
-			":%s 001 %s :Welcome to the Internet Relay Network %s!%s@%s",
-			hostname,
-			getnick(peer),
-			getnick(peer),
-			peer->user,
-			peer->host
-		);
+		reply(peer, 1);
 	}
 }