$chan.getflagReturns the channel-user mode flag of an user
|Returns the channel user mode flag of an user on the channel specified by <window_id>.
If <window_id> is not passed, the current window is used.
If the specified window is not a channel, a warning is printed and an empty string is returned.
If the specified user is not on the channel identified by <window_id>, and empty string is returned.
The possible user flags are:
'!' for channel administrators
'@' for ops
'%' for halfops
'+' for voiced users
'-' for userops
If the user has more than one flag then the highest one is returned.