Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

event_outgoing_text(original, modified) #125

Closed
Podginator opened this issue Apr 8, 2013 · 2 comments
Closed

event_outgoing_text(original, modified) #125

Podginator opened this issue Apr 8, 2013 · 2 comments

Comments

@Podginator
Copy link
Contributor

function event_outgoing_text(original, modified)
write(a)
modified = '/p hi'
return modified
end

This only works 6 times, before seemingly stopping the lua script. The only way to get anything to work again is to reload the addon.

I may be doing something stupid, but I've tried it with only that function, and it works 6 times before stopping. If I do not return anything it will work indefinitely, but returning absolutely anything (Original, modified, or anything else) will break it after 6 times.

@z16
Copy link
Member

z16 commented Apr 19, 2013

I forgot about this issue, but I know why it's happening. event_outgonig_text erroneously takes too much off the stack. I'll try to submit a fix for it later today.

@z16
Copy link
Member

z16 commented Apr 19, 2013

This should be fixed. Report back if it still doesn't work.

@z16 z16 closed this as completed Apr 19, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants