Rename message.message to message.content
This commit is contained in:
parent
c4609574c7
commit
ebee2746d6
11 changed files with 55 additions and 55 deletions
|
@ -121,10 +121,10 @@ func (i *ircHandler) mode(msg *irc.Message) {
|
|||
}
|
||||
|
||||
func (i *ircHandler) message(msg *irc.Message) {
|
||||
message := Chat{
|
||||
message := Message{
|
||||
Server: i.client.Host,
|
||||
From: msg.Nick,
|
||||
Message: msg.LastParam(),
|
||||
Content: msg.LastParam(),
|
||||
}
|
||||
|
||||
if msg.Params[0] == i.client.GetNick() {
|
||||
|
@ -159,10 +159,10 @@ func (i *ircHandler) info(msg *irc.Message) {
|
|||
go i.session.user.SetNick(msg.Params[0], i.client.Host)
|
||||
}
|
||||
|
||||
i.session.sendJSON("pm", Chat{
|
||||
i.session.sendJSON("pm", Message{
|
||||
Server: i.client.Host,
|
||||
From: msg.Nick,
|
||||
Message: strings.Join(msg.Params[1:], " "),
|
||||
Content: strings.Join(msg.Params[1:], " "),
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue