import requests
from tenyksclient.client import Client, run_client, settings


class TenyksLinkScraper(Client):

    direct_only = False
    irc_message_filters = {
        'link_posted': [r'\(?\b(http|https)://[-A-Za-z0-9+&@#/%?=~_()|!:,.;]*[-A-Za-z0-9+&@#/%=~_()|]'],
    }

    def handle_link_posted(self, data, match):
        if settings.POST_URL is None:
            self.logger.debug('No POST_URL in the settings for this service. Cannot post.')
            return None

        url = match.groups(0)[0]
        payload = '{"url": "%s", "person": "%s"}' % (match.groups(0)[0], data['nick'])

        req = requests.post(settings.POST_URL,
            data=payload,
            headers={'content-type': 'application/json'})

        self.logger.debug('Posted {url} to {post_url}. Response code was {code}'.format(
            code=unicode(req.status_code),
            url=url,
            post_url=settings.POST_URL))

def main():
    run_client(TenyksLinkScraper)

if __name__ == '__main__':
    main()

@@ -9,16 +9,41 @@
 equests%0A
+import re%0Aimport logging%0A
 from ten
@@ -295,16 +295,899 @@
 %0A    %7D%0A%0A
+    # MONKEYPATCHING IS DUMB%0A    def __init__(self, name):%0A            self.channels = %5Bsettings.BROADCAST_TO_CLIENTS_CHANNEL%5D%0A            self.name = name.lower().replace(' ', '')%0A            if self.irc_message_filters:%0A                self.re_irc_message_filters = %7B%7D%0A                for name, regexes in self.irc_message_filters.iteritems():%0A                    if not name in self.re_irc_message_filters:%0A                        self.re_irc_message_filters%5Bname%5D = %5B%5D%0A                    if isinstance(regexes, basestring):%0A                        regexes = %5Bregexes%5D%0A                    for regex in regexes:%0A                        self.re_irc_message_filters%5Bname%5D.append(%0A                            re.compile(regex).search)%0A            if hasattr(self, 'recurring'):%0A                gevent.spawn(self.run_recurring)%0A            self.logger = logging.getLogger(self.name)%0A%0A
     def 

Change __init__ to use re.search instead of .match because .match don't work