Skip to content

Instantly share code, notes, and snippets.

View a-teammate's full-sized avatar

Malte H a-teammate

  • Germany
View GitHub Profile
@a-teammate
a-teammate / notifico-util-irc.py
Created March 4, 2016 20:23
new colors for candyman
# -*- 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)