irc-fun-client-0.2.0.0: Another library for writing IRC clients.

Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.IRC.Fun.Client.Util

Synopsis

Documentation

mentions Source

Arguments

:: String

Message content

-> String

Nickname

-> Bool 

Check if a message mentions a given nickname.

This isn't the same as substring search, since the nickname could appear inside a longer word. For example, "ron" isn't really mentioned in "asynchronic". Therefore, this function is a bit smarter about this, trying to capturing real mentions, and works quite well in practice.