mirror of
https://github.com/FrankerFaceZ/FrankerFaceZ.git
synced 2025-09-16 10:06:54 +00:00
Add bunching get_link, without enabling it
This commit is contained in:
parent
d6f5b28ef5
commit
40e26b5535
3 changed files with 137 additions and 7 deletions
|
@ -387,12 +387,14 @@ func MarshalClientMessage(clientMessage interface{}) (payloadType int, data []by
|
|||
}
|
||||
|
||||
// Command handlers should use this to construct responses.
|
||||
func NewClientMessage(arguments interface{}) ClientMessage {
|
||||
return ClientMessage{
|
||||
MessageID: 0, // filled by the select loop
|
||||
func SuccessMessageFromString(arguments string) ClientMessage {
|
||||
cm := ClientMessage{
|
||||
MessageID: -1, // filled by the select loop
|
||||
Command: SuccessCommand,
|
||||
Arguments: arguments,
|
||||
origArguments: arguments,
|
||||
}
|
||||
cm.parseOrigArguments()
|
||||
return cm
|
||||
}
|
||||
|
||||
// Convenience method: Parse the arguments of the ClientMessage as a single string.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue