Package me.hackware.api.event.impl
Class IrcChatReceiveEvent
java.lang.Object
me.hackware.api.event.Event
me.hackware.api.event.impl.IrcChatReceiveEvent
Fired on the main thread when an IRC channel chat line or direct message arrives (including our own echoes).
-
Constructor Summary
ConstructorsConstructorDescriptionIrcChatReceiveEvent(UUID senderUuid, @Nullable String senderName, String text, boolean direct) -
Method Summary
Modifier and TypeMethodDescription@Nullable StringThe sender's tab-list name (null when the tab list doesn't know them).The sender's UUID, as authenticated by the relay's meta frame.getText()The message as plain text: section/ampersand codes stripped, trimmed, never blank.booleanisDirect()True for a direct message ("message"payload), false for channel"chat".Methods inherited from class me.hackware.api.event.Event
cancel, isCancelled
-
Constructor Details
-
IrcChatReceiveEvent
-
-
Method Details
-
getSenderUuid
The sender's UUID, as authenticated by the relay's meta frame. -
getSenderName
The sender's tab-list name (null when the tab list doesn't know them). -
getText
The message as plain text: section/ampersand codes stripped, trimmed, never blank. -
isDirect
public boolean isDirect()True for a direct message ("message"payload), false for channel"chat".
-