summaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--client.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/client.c b/client.c
index 1ae31ed..3827b87 100644
--- a/client.c
+++ b/client.c
@@ -279,6 +279,15 @@ static void handleAuthenticate(struct Client *client, struct Message *msg) {
}
}
+static void handleJoin(struct Client *client, struct Message *msg) {
+ (void)client;
+ (void)msg;
+ // irssi intentionally sends an invalid JOIN command, at
+ // an invalid time (during client registration), on every
+ // connection. Utterly mind-boggling. Ignore it so the
+ // connection doesn't just get dropped like it deserves to be.
+}
+
static void handleQuit(struct Client *client, struct Message *msg) {
const char *mesg = msg->params[0];
if (mesg && !strncmp(mesg, "$pounce", 7) && (!mesg[7] || mesg[7] == ' ')) {
@@ -383,6 +392,7 @@ static const struct {
Handler *fn;
} Handlers[] = {
{ false, false, "AUTHENTICATE", handleAuthenticate },
+ { false, false, "JOIN", handleJoin },
{ false, false, "NICK", handleNick },
{ false, false, "PASS", handlePass },
{ false, false, "USER", handleUser },