[][src]Function ellidri::modes::is_channel_mode_string

pub fn is_channel_mode_string(s: &str) -> bool

Whether the given string is a valid channel MODE query.

Note: the string must not contain spaces nor mode params.

Example

assert!(modes::is_channel_mode_string("+nt"));
assert!(!modes::is_channel_mode_string("+X"));