def pubmsg (self, connection, event):
        self.debug("%s -> %s: %r", event.source(), event.target(), event.arguments())
        try:
            nick, txt = map(str.strip, event.arguments()[0].split(":"))
        except __HOLE__:
            return # not for me
        nick = nick.split("!")[0]
        if nick == self.nick:
            self.info("routing public message from %s", event.source())
            c = Connection(self, event.source().split("!")[0])
            msg = self.message(c.identity, txt)
            msg.irc_channel = event.target()
            self.route(msg)
dataset/ETHPy150Open rapidsms/rapidsms-core-dev/lib/rapidsms/backends/irc.py/Backend.pubmsg