Merge in some fixes from master

This commit is contained in:
Zorchenhimer 2019-03-23 18:14:57 -04:00
commit f5f95efbcd
3 changed files with 6 additions and 2 deletions

View File

@ -182,6 +182,10 @@ func (cr *ChatRoom) Ban(name string) string {
return "Cannot find that name"
}
if client.IsAdmin {
return "You cannot ban an admin Jebaited"
}
names := []string{}
host := client.Host()
color := client.color

View File

@ -16,7 +16,7 @@ func ParseEmotesArray(words []string) []string {
found := false
for key, val := range Emotes {
if key == word {
newWords = append(newWords, fmt.Sprintf("<img src=\"/emotes/%s\" title=\"%s\" />", val, key))
newWords = append(newWords, fmt.Sprintf(`<img src="/emotes/%s" height="28px" title="%s" />`, val, key))
found = true
}
}

View File

@ -224,7 +224,7 @@ func recieve(v []js.Value) {
}
func websocketSend(msg string, dataType common.ClientDataType) error {
if strings.TrimSpace(msg) == "" {
if strings.TrimSpace(msg) == "" && dataType == common.CdMessage {
return nil
}