BigBrotherBot/big-brother-bot — pull request #193 by FenixXx (2014-06-02 00:00:55+00:00)
Title: IOURT4x and PLUGIN fixes

This pull request carries the following fixes:

**[IOURT4x] fixed reColor regex stripping whitespaces between words**

While developing an Extplugin I had to use the stripColors function provided by the parser and I noticed that after using this function from a string all the white spaces were stripped: `"^7This ^1is a ^2colored ^8text"` -> `"Thisisacoloredtext"`

**[PLUGIN] fix impossibility to catch EVT_STOP and EVT_EXIT in plugins …**

Basically with the new event dispatch system (func mapping) EVT_STOP and EVT_EXIT were missing func mappings (they are registered in the plugin.py module and not from plugin instances). I added 2 hooks `onStop(self, event)`, `onExit(self, event)` so it's possible to catch such events by overriding those methods (obviously it's also possible to use the old `onEvent(self, event)` method (retrocompatibility)