export function for formatting activity lines
This commit is contained in:
parent
e3070f52ff
commit
ae7c6d8572
1 changed files with 3 additions and 0 deletions
|
@ -2,6 +2,9 @@ import datetime
|
||||||
from src import EventManager, ModuleManager, utils
|
from src import EventManager, ModuleManager, utils
|
||||||
|
|
||||||
class Module(ModuleManager.BaseModule):
|
class Module(ModuleManager.BaseModule):
|
||||||
|
def on_load(self):
|
||||||
|
self.exports.add("format", self._event)
|
||||||
|
|
||||||
def _color(self, nickname):
|
def _color(self, nickname):
|
||||||
return utils.irc.hash_colorize(nickname)
|
return utils.irc.hash_colorize(nickname)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue