Skip to content
Permalink
Browse files

[Event_PressedEnter/paste] Script veto and multi-line paste

- Fix issue where Event_PressedEnter(Message) was always sent to AddQ() even when VetoThisMessage() in scripts should have canceled it.

- Improve design of multi-line pasting.
- Multi-line pastes are now passed to Event_PressedEnter(Message) [line by line] and can be individually vetoed.
- Multi-line pastes are now passed through internal command processing [line by line].
- Fix issue where pressing "v" at any time would scroll the RTB to the bottom.
- Fix issue where pasting (non-multiline) would scroll the RTB to the bottom.
- Fix issue where pasting single-line text with leading or trailing newlines would turn it into multi-line pastes.
- Fix issue where pasting multi-line text with leading or trailing newlines would possibly cause processing on extra empty lines.
- Fix issue where selected range was not respected when pasting multi-line text.
- Fix inconsistent behavior when processing .quit in contrast to closing the bot yourself.
  • Loading branch information...
nmbook committed Dec 14, 2017
1 parent 9e1c7fa commit 302caf24006967985705d11d7dad8322827a0b65
Showing with 189 additions and 135 deletions.
  1. +2 −2 trunk/clsScriptSupportClass.cls
  2. +180 −123 trunk/frmChat.frm
  3. +0 −1 trunk/modCommandsAdmin.bas
  4. +3 −1 trunk/modEvents.bas
  5. +0 −3 trunk/modGlobals.bas
  6. +4 −5 trunk/modScripting.bas
@@ -685,8 +685,8 @@ End Sub


'// VETOTHISMESSAGE
'// Used with PressedEnter event to prevent a message from being sent to Battle.net
'// For use processing scripts entirely internally
'// Call this from any function that supports it to stop future internal
'// processing of the Event after calling the script.
Public Sub VetoThisMessage()
SetVeto True
End Sub

0 comments on commit 302caf2

Please sign in to comment.
You can’t perform that action at this time.