Skip to content

Instantly share code, notes, and snippets.

Avatar

Malte H a-teammate

  • Germany
View GitHub Profile
@a-teammate
a-teammate / notifico-util-irc.py
Created Mar 4, 2016
new colors for candyman
View notifico-util-irc.py
# -*- coding: utf8 -*-
"""
Generic IRC utilities.
"""
__all__ = ('mirc_colors', 'strip_mirc_colors')
import re
#: Precompiled regex for matching mIRC color codes.
_STRIP_R = re.compile('\x03(?:\d{1,2}(?:,\d{1,2})?)?', re.UNICODE)