bool Client::cmd_join(char *params) { chanClient userInfo; char *name,*extra; if(params==NULL) { goto notenoughparams; } extra=strchr(params,' '); if(extra != NULL) *extra++=0; name=params; memset(&userInfo,0,sizeof(chanClient)); userInfo.client=this; if(rightsmask&OPERPRIVS_GLOBALOWNER) userInfo.owner=true; if(rightsmask&OPERPRIVS_GETOPS) userInfo.op=true; if(rightsmask&OPERPRIVS_GETVOICE) userInfo.voice=true; if(extra != NULL) { if(extra[0]=='x'||extra[0]=='X' && extra[1] == ' ') { //extra extra=strchr(extra,' '); if(extra != NULL) { extra++; for(int i=0;i