[−][src]Function hexchat::add_print_event_listener
pub fn add_print_event_listener(
event: PrintEvent,
priority: Priority,
function: impl Fn(&[String], DateTime<Utc>) -> EatMode + 'static
) -> PrintEventListener
Adds a listener for a particular PrintEvent
; see PrintEvent
's documentation for more
details.
Returns a corresponding object that can be passed to remove_print_event_listener
.
Callback
The callback's signature is a slice of all the print event's arguments, followed by the time
this message was printed. Note that the argument $1
corresponds to args[0]
and so forth. The
callback should return who the event should be hidden from.