commit 6bbc66e7c0951d7f9ec054179867c4a0d839bb26
parent 58611c5389c4b4e820b61176617bc7ed1187f1a8
Author: libredev <libredev@ircforever.org>
Date: Thu, 19 Jan 2023 21:18:19 +0530
fixed error, user doesn't exist
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/main.c b/main.c
@@ -644,6 +644,7 @@ event_read(int id)
snprintf(msg, sizeof(msg), "NICK %s\r\n", newnick);
for (i = 0; i < netlen; i++) {
+ events[ids[i]].user = newnick;
if (ids[i] > 0)
writeall(events[ids[i]].fd, msg);
}