From 4cd15d053a5ac7f6bf16bdb498c7a972a191c708 Mon Sep 17 00:00:00 2001 From: James Vega Date: Wed, 29 Dec 2004 19:22:37 +0000 Subject: [PATCH] Move the docstring for addressed --- src/callbacks.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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