Still dont get it.. i cant remove key, and i must use $chan(#).mode) to get the mode from the channel.. i could use %var .. everything working ok, just that it see the key as modes, so if a S is in the key, then it see the channel as +s .. and if a M is in the key it see the channel as +m .. same with all other modes.. and in the example i got here it works to remove +k .. but nothing else, and i want to make somthing by my self, so the only thing i need help with, thats how to stop $chan(#).mode) from snatch the key as a mode, and mirc shouldent cont the key as mode, only the +k (not the letters behind it)..
PS: Never used $gettok in anything befor.. so i guess it would take me som time to figure out how to use it right.. the problem i have is to make mirc know that it's the key it should remove.. not the mode +k .. and also make it see if the channel is +m .. now i only get allot of errors so i guess i doing it wrong