Fix unsigned/signed mixup
irc_channel_get_user(): support search by mask
Remove dead code
Consistency
Remove testcode