goshuirc / bnc

a simple irc bouncer written in go
https://goshubnc.org/
MIT License
17 stars 3 forks source link

Client commands refactor #13

Closed prawnsalad closed 7 years ago

prawnsalad commented 7 years ago

More specific naming as we also deal with commands sent from the server.

The command handler info (usablePreReg / minParams) is now together with the actual handler instead of spread around the place. Now it's adding the handlers within a function, it opens the possibility in future to re-load commands at runtime if they're loaded from an external plugin or something.

DanielOaks commented 7 years ago

I can see this working nicely, better than it is right now at least. Thanks, merged into master.