Add Message.LastParam()

This commit is contained in:
Ken-Håvard Lieng 2016-12-17 00:11:44 +01:00
parent 83056c5396
commit cc3b1e3a82
4 changed files with 22 additions and 14 deletions

View file

@ -179,7 +179,7 @@ func (c *Client) recv() {
switch msg.Command {
case Ping:
go c.write("PONG :" + msg.Params[len(msg.Params)-1])
go c.write("PONG :" + msg.LastParam())
case Join:
if msg.Nick == c.GetNick() {