commit 54b8605cb15e3fa9136ce4e0612c3265a9c090f9
parent cb6eb160197d99c067645e671439fb71b7bbdbf4
Author: hhvn <dev@hhvn.uk>
Date: Tue, 28 Dec 2021 16:48:19 +0000
s/handle.c: don't create channel on PART
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/handle.c b/src/handle.c
@@ -150,7 +150,7 @@ handle_PART(char *msg, char **params, struct Server *server, time_t timestamp) {
target = *(params+2);
if ((chan = chan_get(&server->channels, target, -1)) == NULL)
- chan = chan_add(server, &server->channels, target, 0);
+ return;
nick = nick_create(*params, ' ', server);
if (nick_isself(nick)) {