Untitled

mail@pastecode.io avatar
unknown
plain_text
5 months ago
689 B
3
Indexable
inserted debug code in  cmd_channel(): cmd_channel():

      printf("    NICK %s\n", m->nick);
      u = get_user_from_member(m);
      if (u) {
        printf("DEBUG: found u\n");
        printf("DEBUG:   strlen(u->handle) = %i\n", strlen(u->handle));
      }
      else
        printf("DEBUG: DID NOT FIND U\n");
      u = get_user_from_member(m);
      if (u) {
        printf("DEBUG: found u\n");
        printf("DEBUG:   strlen(u->handle) = %i\n", strlen(u->handle));
      }
      else
        printf("DEBUG: DID NOT FIND U\n");

then testuser joins the channel then bot is in

then on the bot .channel results in debug output:

    NICK testuser
DEBUG: DID NOT FIND U
DEBUG: found u
Leave a Comment