global badge/class fix
This commit is contained in:
+2
-2
@@ -119,14 +119,14 @@ func kk_process_message(rawmsg map[string]interface{}) {
|
||||
|
||||
/* process username color preference */
|
||||
if _, ok := metadata["color"]; ok && len(metadata["color"].(string)) > 0 {
|
||||
out_message.Type += "-color" + metadata["color"].(string)
|
||||
out_message.Type += "^color" + metadata["color"].(string)
|
||||
}
|
||||
|
||||
/* process username badges */
|
||||
if _, ok := metadata["badges"]; ok && len(metadata["badges"].([]interface{})) > 0 {
|
||||
for _, badge := range metadata["badges"].([]interface{}) {
|
||||
if badge.(map[string]interface{})["active"].(bool) {
|
||||
out_message.Type += "-" + strings.ToLower(badge.(map[string]interface{})["text"].(string))
|
||||
out_message.Type += "^" + strings.ToLower(badge.(map[string]interface{})["text"].(string))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user