def isCtcp(msg):
    return msg.command in ('PRIVMSG', 'NOTICE') and \
           msg.args[1].startswith('\x01') and \
           msg.args[1].endswith('\x01') and \
           len(msg.args[1]) >= 2
Returns a string of HTML for representing this as an <input type="hidden">.
dataset/ETHPy150Open ProgVal/Limnoria/src/ircmsgs.py/isCtcp--crossover with--dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-0.96/django/newforms/forms.py/BoundField.as_hidden