LunaTTvBot / LunaBot

0 stars 1 forks source link

implement IrcConnectionManager #57

Closed CapCalamity closed 8 years ago

CapCalamity commented 8 years ago

IrcConnectionManager now manages the used IrcConnections for the application.

The way to use Connections largely stays the same.
The largest change is that the RaiseMessageEvent is now subscribed by using executing this:

IrcConnectionManager.RegisterMessageHandler(ConnectionType, EventHandler<MessageEventArgs>);

The same goes for joining channels after a successful connection.

IrcConnectionManager.RegisterOnConnectedHandler(ConnectionType, EventHandler<ConnectionEventArgs>)

The manager can now also close / reopen connections, so they need only be created once at startup.

fixes #52

iPaat commented 8 years ago

I like it, good work :+1: