diff options
Diffstat (limited to 'message.c')
| -rw-r--r-- | message.c | 10 | 
1 files changed, 10 insertions, 0 deletions
@@ -1151,6 +1151,16 @@ int processclientmessage(SSL *server_ssl, char *str, struct client *clients, int      // If it wasn't a CTCP VERSION response, then let this fall through to the default unhandled action by not returning here    } +  // Client PROTOCTL received +  if (strncasecmp(tokens[0], "PROTOCTL", strlen(tokens[0])) == 0) { +    // If it's a PROTOCTL NAMESX, just pass to the server - TODO - Maybe deal with either PROTCTL NAMEX or multi-prefix CAP for mode prefixes? +    if (strncasecmp(tokens[1], "NAMESX", strlen(tokens[1])) == 0) { +      debugprint(DEBUG_FULL, "Client PROTOCTL NAMESX found!  Sending to server.\n", tokens[0], strlen(tokens[0])); +      sendtoserver(server_ssl, str, strlen(str), sourcefd, clients, settings); +      return 1; +    } +  } +    // Custom BLABOUNCER command received    // Case insensitive comparisons here since clients won't be recognising and uppercasing these commands    if (strncasecmp(tokens[0], "BLABOUNCER", strlen(tokens[0])) == 0) {  | 
