Cross-compilation attempts (not successful yet)
This commit is contained in:
+4
-2
@@ -51,8 +51,10 @@ func appendChatMessages() {
|
||||
msg.Id = global_msg_id
|
||||
|
||||
/* directly call the append function on the JS side */
|
||||
fmt_str := "gooseAppendMessage('%d', '%s', '%s', '%s', '%s', '%s')"
|
||||
bro.Eval(fmt.Sprintf(fmt_str, msg.Id, esc(msg.Type), esc(msg.Timestamp), esc(msg.Username), esc(msg.Text), esc(msg.Icon)))
|
||||
fmt_str := "gooseAppendMessage('%d', '%s', '%s', '%s', '%s', '%s');"
|
||||
js := fmt.Sprintf(fmt_str, msg.Id, esc(msg.Type), esc(msg.Timestamp), esc(msg.Username), esc(msg.Text), esc(msg.Icon))
|
||||
log.Printf("Evaluating JS: %s", js)
|
||||
bro.Eval(js)
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user