[−][src]Function hexchat::add_reply_listener
pub fn add_reply_listener<T>(
priority: Priority,
function: impl Fn(T, DateTime<Utc>) -> EatMode + 'static
) -> ReplyListener where
T: ServerReply,
Adds a listener for server replies, i.e. the numeric RPL_*
messages.
Returns a corresponding object suitable for passing to remove_reply_listener
.
Callback
The callback's signature is the reply itself, followed by the time this reply was sent. The callback should return who the reply should be hidden from.