diff --git a/src/callbacks.py b/src/callbacks.py index 6d3f28dc7..e76257b8c 100644 --- a/src/callbacks.py +++ b/src/callbacks.py @@ -67,9 +67,6 @@ import supybot.registry as registry def _addressed(nick, msg, prefixChars=None, nicks=None, prefixStrings=None, whenAddressedByNick=None, whenAddressedByNickAtEnd=None): - """If msg is addressed to 'name', returns the portion after the address. - Otherwise returns the empty string. - """ def get(group): if ircutils.isChannel(target): group = group.get(target) @@ -145,6 +142,9 @@ def _addressed(nick, msg, prefixChars=None, nicks=None, return '' def addressed(nick, msg, **kwargs): + """If msg is addressed to 'name', returns the portion after the address. + Otherwise returns the empty string. + """ payload = msg.addressed if payload is not None: return payload