$chan(#).mode returns the modes and their parameters (key, limit...).

Use $gettok($chan(#).mode,1,32) to get the modes only.