mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 11:09:23 +01:00
Move the docstring for addressed
This commit is contained in:
parent
4261ec4f76
commit
4cd15d053a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user