ref: d08105b69107543a67d13df9664f4a4faaa8f2df
parent: 989994f0c56ca190df70aaadfbf20ac8f15fd576
author: mkf <mkf@cloud9p.org>
date: Thu Nov 21 02:10:11 EST 2024
add basic who support, pidgin seems to be happier with it
--- a/ircd.c
+++ b/ircd.c
@@ -92,6 +92,8 @@
char *topic;
char *topicwho;
List members;
+ List banned;
+ List silenced;
};
/* message that is sent to clients */
@@ -1217,6 +1219,14 @@
if(strcmp(cmd, "LIST") == 0){
tmp = strtok(0, " :\r"); /* channels */
return list(c, tmp);
+ }
+ /*
+ * TODO: WHO doesn't really mean WHOIS,
+ * but this is enough for some clients to be happy
+ */
+ if(strcmp(cmd, "WHO") == 0){
+ tmp = strtok(0, " :\r"); /* nicks */
+ return whois(c, tmp);
}
if(strcmp(cmd, "WHOIS") == 0){
tmp = strtok(0, " :\r"); /* nicks */