]> jfr.im git - irc/UndernetIRC/iauthd-c.git/commitdiff
iauth_core: Stop expecting class in 'H' message.
authorMichael Poole <redacted>
Wed, 14 Mar 2018 00:15:51 +0000 (20:15 -0400)
committerMichael Poole <redacted>
Wed, 14 Mar 2018 00:15:51 +0000 (20:15 -0400)
We probably shouldn't be copying the ircd's proposed connection class
anyway, and ircu is going to stop sending it.

modules/iauth_core.c

index 8c8c7cc257032a4ba001bea9b55649188d54c0f9..1d0ff6ee6297db8c60f04d20767190c29dc4ea35 100644 (file)
@@ -577,13 +577,11 @@ static void parse_nick(struct iauth_request *req, char nick[])
     iauth_check_request(req);
 }
 
-static void parse_hurry_up(struct iauth_request *req, char class[])
+static void parse_hurry_up(struct iauth_request *req)
 {
     struct iauth_module *plugin;
     struct set_node *node;
 
-    if (req->class[0] == '\0')
-        strncpy(req->class, class, CLASSLEN);
     BITSET_OR(req->flags, req->flags, iauth_flags);
     BITSET_SET(req->flags, IAUTH_GOT_HURRY_UP);
     req->state = IAUTH_HURRY;
@@ -738,7 +736,7 @@ static void iauth_read(struct bufferevent *buf, UNUSED_ARG(void *arg))
             parse_nick(req, argv[1]);
             break;
         case 'H':
-            parse_hurry_up(req, argv[1]);
+            parse_hurry_up(req);
             break;
         case 'T':
             parse_registered(req, 1);