Skip to content

Commit

Permalink
fix: rename function to avoid any conflict
Browse files Browse the repository at this point in the history
`OnMessage` is an AutoHotkey built-in function
  • Loading branch information
amorphobia committed Nov 27, 2023
1 parent 1fa5b7c commit 5917b14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Lib/RabbitCommon.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ CreateTraits() {
return traits
}

OnMessage(context_object, session_id, message_type, message_value) {
OnRimeMessage(context_object, session_id, message_type, message_value) {
msg_type := StrGet(message_type, "UTF-8")
msg_value := StrGet(message_value, "UTF-8")
if msg_type = "deploy" {
Expand Down
2 changes: 1 addition & 1 deletion Rabbit.ahk
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ RabbitMain(args) {
rabbit_traits := CreateTraits()
global rime
rime.setup(rabbit_traits)
rime.set_notification_handler(OnMessage, 0)
rime.set_notification_handler(OnRimeMessage, 0)
rime.initialize(rabbit_traits)

local m := (args.Length == 0) ? RABBIT_PARTIAL_MAINTENANCE : args[1]
Expand Down

0 comments on commit 5917b14

Please sign in to comment.