mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-23 18:54:05 +01:00
opercmds: use %r instead of '%s' in formatting
This commit is contained in:
parent
3eb2c6bbf7
commit
9b271efc89
@ -67,7 +67,7 @@ def jupe(irc, source, args):
|
|||||||
return
|
return
|
||||||
|
|
||||||
if not utils.isServerName(servername):
|
if not utils.isServerName(servername):
|
||||||
irc.error("Invalid server name '%s'." % servername)
|
irc.error("Invalid server name %r." % servername)
|
||||||
return
|
return
|
||||||
|
|
||||||
sid = irc.spawn_server(servername, desc=desc)
|
sid = irc.spawn_server(servername, desc=desc)
|
||||||
@ -100,7 +100,7 @@ def kick(irc, source, args):
|
|||||||
|
|
||||||
if not targetu:
|
if not targetu:
|
||||||
# Whatever we were told to kick doesn't exist!
|
# Whatever we were told to kick doesn't exist!
|
||||||
irc.error("No such target nick '%s'." % target)
|
irc.error("No such target nick %r." % target)
|
||||||
return
|
return
|
||||||
|
|
||||||
sender = irc.pseudoclient.uid
|
sender = irc.pseudoclient.uid
|
||||||
@ -129,7 +129,7 @@ def kill(irc, source, args):
|
|||||||
|
|
||||||
if targetu not in irc.users:
|
if targetu not in irc.users:
|
||||||
# Whatever we were told to kick doesn't exist!
|
# Whatever we were told to kick doesn't exist!
|
||||||
irc.error("No such nick '%s'." % target)
|
irc.error("No such nick %r." % target)
|
||||||
return
|
return
|
||||||
|
|
||||||
irc.kill(sender, targetu, reason)
|
irc.kill(sender, targetu, reason)
|
||||||
@ -157,7 +157,7 @@ def mode(irc, source, args):
|
|||||||
return
|
return
|
||||||
|
|
||||||
if target not in irc.channels:
|
if target not in irc.channels:
|
||||||
irc.error("Unknown channel '%s'." % target)
|
irc.error("Unknown channel %r." % target)
|
||||||
return
|
return
|
||||||
elif not modes:
|
elif not modes:
|
||||||
# No modes were given before parsing (i.e. mode list was blank).
|
# No modes were given before parsing (i.e. mode list was blank).
|
||||||
|
Loading…
Reference in New Issue
Block a user