mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Added ability to send empty topic messages to get the current topic.
This commit is contained in:
parent
b3253df28e
commit
c45e38b537
@ -485,9 +485,12 @@ def quit(msg='', prefix=''):
|
||||
else:
|
||||
return IrcMsg(prefix=prefix, command='QUIT')
|
||||
|
||||
def topic(channel, topic, prefix=''):
|
||||
def topic(channel, topic=None, prefix=''):
|
||||
"""Returns a TOPIC for channel with the topic topic."""
|
||||
assert isChannel(channel), channel
|
||||
if topic is None:
|
||||
return IrcMsg(prefix=prefix, command='TOPIC', args=(channel,))
|
||||
else:
|
||||
return IrcMsg(prefix=prefix, command='TOPIC', args=(channel, topic))
|
||||
|
||||
def nick(nick, prefix=''):
|
||||
|
Loading…
Reference in New Issue
Block a user