+ CHAN_LIST = Regexp.new_list(GEN_CHAN)
+
+ # Match "in #channel" or "on #channel" and/or "in private" (optionally
+ # shortened to "in pvt"), returning the channel name or the word 'private'
+ # or 'pvt' as capture
+ IN_CHAN = /#{IN_ON}\s+(#{GEN_CHAN})|(here)|/
+ IN_CHAN_PVT = /#{IN_CHAN}|in\s+(private|pvt)/
+
+ # As above, but with channel lists
+ IN_CHAN_LIST_SFX = Regexp.new_list(/#{GEN_CHAN}|here/, IN_ON)
+ IN_CHAN_LIST = /#{IN_ON}\s+#{IN_CHAN_LIST_SFX}|anywhere|everywhere/
+ IN_CHAN_LIST_PVT_SFX = Regexp.new_list(/#{GEN_CHAN}|here|private|pvt/, IN_ON)
+ IN_CHAN_LIST_PVT = /#{IN_ON}\s+#{IN_CHAN_LIST_PVT_SFX}|anywhere|everywhere/
+