mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-07 19:49:23 +01:00
Again, run tests before committing.
This commit is contained in:
parent
df66715089
commit
9fee5f17a9
@ -444,11 +444,11 @@ def nick(nick, prefix=''):
|
|||||||
|
|
||||||
def user(ident, user, prefix=''):
|
def user(ident, user, prefix=''):
|
||||||
"""Returns a USER with ident ident and user user."""
|
"""Returns a USER with ident ident and user user."""
|
||||||
assert '\x00' not in user and \
|
assert '\x00' not in ident and \
|
||||||
'\r' not in user and \
|
'\r' not in ident and \
|
||||||
'\n' not in user and \
|
'\n' not in ident and \
|
||||||
' ' not in user and \
|
' ' not in ident and \
|
||||||
'@' not in user
|
'@' not in ident
|
||||||
return IrcMsg(prefix=prefix, command='USER', args=(ident, '0', '*', user))
|
return IrcMsg(prefix=prefix, command='USER', args=(ident, '0', '*', user))
|
||||||
|
|
||||||
def who(hostmaskOrChannel, prefix=''):
|
def who(hostmaskOrChannel, prefix=''):
|
||||||
|
Loading…
Reference in New Issue
Block a user