mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +01:00
Forgot to add prefix to IrcMsg in two functions.
This commit is contained in:
parent
b8e3396d6b
commit
545f675ae4
@ -255,7 +255,9 @@ def halfops(channel, nicks, prefix=''):
|
||||
"""Returns a MODE to halfop each of nicks on channel."""
|
||||
assert isChannel(channel), channel
|
||||
assert filter(isNick, nicks) == nicks, nicks
|
||||
return IrcMsg(command=MODE, args=(channel, '+' + ('h'*len(nicks)), nicks))
|
||||
return IrcMsg(prefix=prefix,
|
||||
command=MODE,
|
||||
args=(channel, '+' + ('h'*len(nicks)), nicks))
|
||||
|
||||
def dehalfop(channel, nick, prefix=''):
|
||||
"""Returns a MODE to dehalfop nick on channel."""
|
||||
@ -460,7 +462,7 @@ def who(hostmaskOrChannel, prefix=''):
|
||||
def whois(nick, prefix=''):
|
||||
"""Returns a WHOIS for nick."""
|
||||
assert isNick(nick), nick
|
||||
return IrcMsg(command='WHOIS', args=(nick,))
|
||||
return IrcMsg(prefix=prefix, command='WHOIS', args=(nick,))
|
||||
|
||||
def invite(channel, nick, prefix=''):
|
||||
"""Returns an INVITE for nick."""
|
||||
|
Loading…
Reference in New Issue
Block a user