Command handler in IRC core #141

Closed
opened 3 years ago by Tomatix · 0 comments
Owner

Instead of a long if-else statement, it can be put into a map of string->functions.
This is possible now due to the fact every command handler function takes the same exact argument (an IRCMessage).

Instead of a long if-else statement, it can be put into a map of string->functions. This is possible now due to the fact every command handler function takes the same exact argument (an `IRCMessage`).
Tomatix added this to the Version 1.2.0 milestone 3 years ago
Tomatix added the
Improvement
label 3 years ago
Tomatix self-assigned this 3 years ago
Tomatix closed this issue 1 year ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: idealirc/idealirc#141
Loading…
There is no content yet.