glirc-2.33.1: Console IRC client

Safe HaskellNone
LanguageHaskell2010

Client.Mask

Synopsis

Documentation

matchMask :: Mask -> UserInfo -> Bool Source #

Determine if a given Mask matches a given UserInfo

buildMask Source #

Arguments

:: [Identifier]

masks

-> Mask 

Compile a list of masks down to a single, reuseable Mask value suitable for being used with matchMask.

Masks can match zero-to-many arbitrary characters with *.

Masks can match one arbitrary character with ?.

Literal * ? and | can be matched with a preceding @@.

Missing host or username components of a mask will automatically be treated as wildcards.