void recv_whohandler_315(struct ClientSocket *client, char **argv, unsigned int argc) {
if(argc < 2) return;
- char *typestr = strstr(argv[1], ",") + 1;
+ char *typestr = strstr(argv[1], ",");
if(!typestr) return;
+ typestr++;
int type = atoi(typestr);
if(!(type & WHOQUEUETYPE_ISONQUEUE)) return;
struct WHOQueueEntry* entry = getNextWHOQueueEntry(client, 1);