Skip to content

Commit

Permalink
Some linting fixes for the common package
Browse files Browse the repository at this point in the history
  • Loading branch information
joeyak committed Mar 14, 2019
1 parent 654d321 commit 2ef3684
Show file tree
Hide file tree
Showing 5 changed files with 269 additions and 238 deletions.
2 changes: 1 addition & 1 deletion chatclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ func (cl *Client) Send(s string) {
// Send server message to this client
func (cl *Client) ServerMessage(msg string) {
msg = ParseEmotes(msg)
encoded, err := common.EncodeMessage("", "#ea6260", msg, common.MSG_ERROR)
encoded, err := common.EncodeMessage("", "#ea6260", msg, common.MsgError)
if err != nil {
fmt.Printf("Error encoding server message to %s: %s; Message: %s\n", cl.name, err, msg)
return
Expand Down

0 comments on commit 2ef3684

Please sign in to comment.