1°) Try this:

On *:text:*:#channel,blabla:! [see /help prefixes]
On *:text:*:#:{ do stuff }

2°) There appear to be no meaningful identifier you can pass to $check() when it's called from the target (location) field.

3°) It's faster & cleaner to use the internal -uN