this is undefined if parameters[1] is empty (possible: `/rmode #chan :`), you can either check for .empty() first or disallow the last parameter to be empty as done in m_setident for example (set `allow_empty_last_param` to `false`)