def notice(recipient, s, prefix='', msg=None):
    if conf.supybot.protocols.irc.strictRfc():
        assert areReceivers(recipient), repr(recipient)
        assert s, 'msg must not be empty.'
    if minisix.PY2 and isinstance(s, unicode):
        s = s.encode('utf8')
    assert isinstance(s, str)
    if msg and not prefix:
        prefix = msg.prefix
    return IrcMsg(prefix=prefix, command='NOTICE', args=(recipient, s), msg=msg)
Returns a NOTICE to recipient with the message msg.
dataset/ETHPy150Open ProgVal/Limnoria/src/ircmsgs.py/notice