mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-22 18:52:45 +01:00
Change a couple more ircutils.is* to is*
This commit is contained in:
parent
b135107038
commit
241243ba82
@ -134,7 +134,7 @@ class IrcMsg(object):
|
|||||||
assert all(ircutils.isValidArgument, args)
|
assert all(ircutils.isValidArgument, args)
|
||||||
self.args = args
|
self.args = args
|
||||||
self.args = tuple(self.args)
|
self.args = tuple(self.args)
|
||||||
if ircutils.isUserHostmask(self.prefix):
|
if isUserHostmask(self.prefix):
|
||||||
(self.nick,self.user,self.host)=ircutils.splitHostmask(self.prefix)
|
(self.nick,self.user,self.host)=ircutils.splitHostmask(self.prefix)
|
||||||
else:
|
else:
|
||||||
(self.nick, self.user, self.host) = (self.prefix,)*3
|
(self.nick, self.user, self.host) = (self.prefix,)*3
|
||||||
@ -561,7 +561,7 @@ def privmsg(recipient, s, prefix='', msg=None):
|
|||||||
def dcc(recipient, kind, *args, **kwargs):
|
def dcc(recipient, kind, *args, **kwargs):
|
||||||
# Stupid Python won't allow (recipient, kind, *args, prefix=''), so we have
|
# Stupid Python won't allow (recipient, kind, *args, prefix=''), so we have
|
||||||
# to use the **kwargs form. Blech.
|
# to use the **kwargs form. Blech.
|
||||||
assert ircutils.isNick(recipient), 'Can\'t DCC a channel.'
|
assert isNick(recipient), 'Can\'t DCC a channel.'
|
||||||
kind = kind.upper()
|
kind = kind.upper()
|
||||||
assert kind in ('SEND', 'CHAT', 'RESUME', 'ACCEPT'), 'Invalid DCC command.'
|
assert kind in ('SEND', 'CHAT', 'RESUME', 'ACCEPT'), 'Invalid DCC command.'
|
||||||
args = (kind,) + args
|
args = (kind,) + args
|
||||||
|
Loading…
Reference in New Issue
Block a user