cio

a simple irc client
Download | Log | Files | Refs | README | LICENSE

commit debd3e3e17ce2a0dbc222a92e9d8e405205ea513
parent 1e98f8a44d2dda525d94f8945d2344d7f744ae54
Author: Andrew Kloet <andrew@kloet.net>
Date:   Tue, 14 Apr 2026 11:32:39 -0400

remove join/part messages

These bother me more than I thought they would. Reimplementation is left
as an exercise up to the reader.

Diffstat:
Mcio.c | 25-------------------------
1 file changed, 0 insertions(+), 25 deletions(-)

diff --git a/cio.c b/cio.c @@ -544,33 +544,8 @@ scmd(char *usr, char *cmd, int argc, char **argv) sndf("PONG :%s", chl[0]); break; case PONG: - break; case JOIN: - if (argc < 1 || !usr) break; - c = chfind(argv[0]); - if (!strcasecmp(usr, nick)) { - if (c <= 0) - c = chadd(argv[0], 1); - if (c > 0) { - pushf(c, "-!- You have joined %s", argv[0]); - tdrawbar(); - tredraw(); - } - } else if (c > 0) { - pushf(c, "-!- %s has joined %s", usr, argv[0]); - } - break; case PART: - if (argc < 1 || !usr) break; - c = chfind(argv[0]); - if (c <= 0) break; - if (!strcasecmp(usr, nick)) { - pushf(0, "-!- You have left %s", argv[0]); - chdel(argv[0]); - tredraw(); - } else { - pushf(c, "-!- %s has left %s %s", usr, argv[0], GET_ARG(1)); - } break; case QUIT: break;