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
|
||||
|
||||
if not utils.isServerName(servername):
|
||||
irc.error("Invalid server name '%s'." % servername)
|
||||
irc.error("Invalid server name %r." % servername)
|
||||
return
|
||||
|
||||
sid = irc.spawn_server(servername, desc=desc)
|
||||
@ -100,7 +100,7 @@ def kick(irc, source, args):
|
||||
|
||||
if not targetu:
|
||||
# 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
|
||||
|
||||
sender = irc.pseudoclient.uid
|
||||
@ -129,7 +129,7 @@ def kill(irc, source, args):
|
||||
|
||||
if targetu not in irc.users:
|
||||
# Whatever we were told to kick doesn't exist!
|
||||
irc.error("No such nick '%s'." % target)
|
||||
irc.error("No such nick %r." % target)
|
||||
return
|
||||
|
||||
irc.kill(sender, targetu, reason)
|
||||
@ -157,7 +157,7 @@ def mode(irc, source, args):
|
||||
return
|
||||
|
||||
if target not in irc.channels:
|
||||
irc.error("Unknown channel '%s'." % target)
|
||||
irc.error("Unknown channel %r." % target)
|
||||
return
|
||||
elif not modes:
|
||||
# No modes were given before parsing (i.e. mode list was blank).
|
||||
|
Loading…
Reference in New Issue
Block a user