|
@@ -36,7 +36,7 @@ class ChannelJoined(time: LocalDateTime, val user: User, val channel: String) :
|
36
|
36
|
class ChannelParted(time: LocalDateTime, val user: User, val channel: String, val reason: String = "") : IrcEvent(time)
|
37
|
37
|
|
38
|
38
|
/** Raised when a [victim] is kicked from a channel. */
|
39
|
|
-class ChannelUserKicked(time: LocalDateTime, val user: User, val channel: String, val victim: String, val reason: String = ""): IrcEvent(time)
|
|
39
|
+class ChannelUserKicked(time: LocalDateTime, val user: User, val channel: String, val victim: String, val reason: String = "") : IrcEvent(time)
|
40
|
40
|
|
41
|
41
|
/** Raised when a user quits, and is in a channel. */
|
42
|
42
|
class ChannelQuit(time: LocalDateTime, val user: User, val channel: String, val reason: String = "") : IrcEvent(time)
|
|
@@ -48,7 +48,7 @@ class ChannelNamesReceived(time: LocalDateTime, val channel: String, val names:
|
48
|
48
|
class ChannelNamesFinished(time: LocalDateTime, val channel: String) : IrcEvent(time)
|
49
|
49
|
|
50
|
50
|
/** Raised when a message is received. */
|
51
|
|
-class MessageReceived(time: LocalDateTime, val user: User, val target: String, val message: String) : IrcEvent(time)
|
|
51
|
+class MessageReceived(time: LocalDateTime, val user: User, val target: String, val message: String, val messageId: String? = null) : IrcEvent(time)
|
52
|
52
|
|
53
|
53
|
/**
|
54
|
54
|
* Raised when a notice is received.
|
|
@@ -58,7 +58,7 @@ class MessageReceived(time: LocalDateTime, val user: User, val target: String, v
|
58
|
58
|
class NoticeReceived(time: LocalDateTime, val user: User, val target: String, val message: String) : IrcEvent(time)
|
59
|
59
|
|
60
|
60
|
/** Raised when an action is received. */
|
61
|
|
-class ActionReceived(time: LocalDateTime, val user: User, val target: String, val action: String) : IrcEvent(time)
|
|
61
|
+class ActionReceived(time: LocalDateTime, val user: User, val target: String, val action: String, val messageId: String? = null) : IrcEvent(time)
|
62
|
62
|
|
63
|
63
|
/** Raised when a CTCP is received. */
|
64
|
64
|
class CtcpReceived(time: LocalDateTime, val user: User, val target: String, val type: String, val content: String) : IrcEvent(time)
|
|
@@ -74,7 +74,7 @@ class UserQuit(time: LocalDateTime, val user: User, val reason: String = "") : I
|
74
|
74
|
*
|
75
|
75
|
* This event is only raised if the server supports the `account-notify` capability.
|
76
|
76
|
*/
|
77
|
|
-class UserAccountChanged(time: LocalDateTime, val user: User, val newAccount: String?): IrcEvent(time)
|
|
77
|
+class UserAccountChanged(time: LocalDateTime, val user: User, val newAccount: String?) : IrcEvent(time)
|
78
|
78
|
|
79
|
79
|
/** Raised when available server capabilities are received. More batches may follow. */
|
80
|
80
|
class ServerCapabilitiesReceived(time: LocalDateTime, val capabilities: Map<Capability, String>) : IrcEvent(time)
|
|
@@ -86,7 +86,7 @@ class ServerCapabilitiesAcknowledged(time: LocalDateTime, val capabilities: Map<
|
86
|
86
|
class ServerCapabilitiesFinished(time: LocalDateTime) : IrcEvent(time)
|
87
|
87
|
|
88
|
88
|
/** Raised when a Message Of the Day has completed. */
|
89
|
|
-class MotdFinished(time: LocalDateTime, val missing: Boolean = false): IrcEvent(time)
|
|
89
|
+class MotdFinished(time: LocalDateTime, val missing: Boolean = false) : IrcEvent(time)
|
90
|
90
|
|
91
|
91
|
/**
|
92
|
92
|
* Raised when a mode change occurs.
|
|
@@ -95,10 +95,10 @@ class MotdFinished(time: LocalDateTime, val missing: Boolean = false): IrcEvent(
|
95
|
95
|
* and the given modes are thus exhaustive. Otherwise, the modes are a sequence of changes to apply to the existing
|
96
|
96
|
* state.
|
97
|
97
|
*/
|
98
|
|
-class ModeChanged(time: LocalDateTime, val target: String, val modes: String, val arguments: Array<String>, val discovered: Boolean = false): IrcEvent(time)
|
|
98
|
+class ModeChanged(time: LocalDateTime, val target: String, val modes: String, val arguments: Array<String>, val discovered: Boolean = false) : IrcEvent(time)
|
99
|
99
|
|
100
|
100
|
/** Raised when an AUTHENTICATION message is received. [argument] is `null` if the server sent an empty reply ("+") */
|
101
|
|
-class AuthenticationMessage(time: LocalDateTime, val argument: String?): IrcEvent(time)
|
|
101
|
+class AuthenticationMessage(time: LocalDateTime, val argument: String?) : IrcEvent(time)
|
102
|
102
|
|
103
|
103
|
/** Raised when a SASL attempt finishes, successfully or otherwise. */
|
104
|
104
|
class SaslFinished(time: LocalDateTime, var success: Boolean) : IrcEvent(time)
|