(irc) Send command output to current room (rather than sys buffer) #3

Open
opened 2021-08-16 10:18:11 -05:00 by JadedCtrl · 0 comments
JadedCtrl commented 2021-08-16 10:18:11 -05:00 (Migrated from github.com)

When a command is sent from the app to an add-on, the sending chat_id is included in the message. This can be used to send command output to the appropriate room, instead of defaulting to the system buffer.

Here's what I'm thinking: two variables, fLastCommand and fCommandRoom, listing the command's string and output room, respectively. A helper function should be able to take fLastCommand in ProcessNumerics() and return if the command is related to the current numeric or not. If yes, print to the fCommandRoom, rather than system buffer. If it's a numeric signifying the end of a message (e.g., RPL_ENDOFWHOIS), then fLastCommand and fCommandRoom are cleared.

When a command is sent from the app to an add-on, the sending chat_id is included in the message. This can be used to send command output to the appropriate room, instead of defaulting to the system buffer. Here's what I'm thinking: two variables, fLastCommand and fCommandRoom, listing the command's string and output room, respectively. A helper function should be able to take fLastCommand in ProcessNumerics() and return if the command is related to the current numeric or not. If yes, print to the fCommandRoom, rather than system buffer. If it's a numeric signifying the end of a message (e.g., RPL_ENDOFWHOIS), then fLastCommand and fCommandRoom are cleared.
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: jadedctrl/Chat-O-Matic#3
No description provided.