Some extra periods.

This commit is contained in:
Jeremy Fincher 2004-08-19 12:19:18 +00:00
parent 4348b41178
commit 501b642796
4 changed files with 14 additions and 14 deletions

View File

@ -247,7 +247,7 @@ class OSU(callbacks.Privmsg):
elif len(emails) == 1:
irc.reply(emails[0])
else:
irc.reply('Possible matches: %s' % ', '.join(emails))
irc.reply('Possible matches: %s.' % ', '.join(emails))
except Exception, e:
irc.error(utils.exnToString(e))
email = privmsgs.thread(email)

View File

@ -122,9 +122,9 @@ class Python(callbacks.PrivmsgCommandAndRegexp):
if hasattr(obj, '__doc__'):
irc.reply(normalize(obj.__doc__))
else:
irc.reply('%s has no documentation' % name)
irc.reply('%s has no documentation.' % name)
else:
s = '%s has no method %s' % (moduleName, funcName)
s = '%s has no method %s.' % (moduleName, funcName)
irc.reply(s)
elif moduleName:
newmodule = getModule(moduleName)
@ -139,7 +139,7 @@ class Python(callbacks.PrivmsgCommandAndRegexp):
else:
irc.error('%s has no documentation.' % name)
else:
s = '%s has no function %s' % (moduleName, funcName)
s = '%s has no function %s.' % (moduleName, funcName)
irc.error(s)
else:
if name in sys.modules:

View File

@ -188,7 +188,7 @@ class QuoteGrabs(plugins.ChannelDBHandler, callbacks.Privmsg):
WHERE nickeq(nick, %s)
ORDER BY id DESC LIMIT 1""", nick)
if cursor.rowcount == 0:
irc.error('I couldn\'t find a matching quotegrab for %s'%nick)
irc.error('I couldn\'t find a matching quotegrab for %s.' % nick)
else:
text = cursor.fetchone()[0]
irc.reply(text)
@ -208,7 +208,7 @@ class QuoteGrabs(plugins.ChannelDBHandler, callbacks.Privmsg):
WHERE nick LIKE %s
ORDER BY id ASC""", nick)
if cursor.rowcount == 0:
irc.error('I couldn\'t find any quotegrabs for %s' % nick)
irc.error('I couldn\'t find any quotegrabs for %s.' % nick)
else:
l = []
for (id, quote) in cursor.fetchall():

View File

@ -425,7 +425,7 @@ class RichReplyMethods(object):
def errorNoCapability(self, capability, s='', Raise=False, **kwargs):
if isinstance(capability, basestring): # checkCommandCapability!
log.warning('Denying %s for lacking %r capability',
log.warning('Denying %s for lacking %r capability.',
self.msg.prefix, capability)
if not self._getConfig(conf.supybot.reply.noCapabilityError):
v = self._getConfig(conf.supybot.replies.noCapability)
@ -433,7 +433,7 @@ class RichReplyMethods(object):
self._error(s, Raise, **kwargs)
else:
log.warning('Denying %s for some unspecified capability '
'(or a default)', self.msg.prefix)
'(or a default).', self.msg.prefix)
v = self._getConfig(conf.supybot.replies.genericNoCapability)
self._error(self.__makeReply(v, s), Raise, **kwargs)
@ -506,9 +506,9 @@ class IrcObjectProxy(RichReplyMethods):
return
log.debug('Calling invalidCommands.')
for cb in self.irc.callbacks:
log.debug('Trying to call %s.invalidCommand' % cb.name())
log.debug('Trying to call %s.invalidCommand.' % cb.name())
if self.finished:
log.debug('Finished calling invalidCommand: %s', cb.name())
log.debug('Finished calling invalidCommand: %s.', cb.name())
return
if hasattr(cb, 'invalidCommand'):
cb.invalidCommand(self, self.msg, self.args)
@ -645,7 +645,7 @@ class IrcObjectProxy(RichReplyMethods):
maximumMores = conf.supybot.reply.mores.maximum()
maximumLength = allowedLength * maximumMores
if len(s) > maximumLength:
log.warning('Truncating to %s bytes from %s bytes',
log.warning('Truncating to %s bytes from %s bytes.',
maximumLength, len(s))
s = s[:maximumLength]
if len(s) < allowedLength or conf.supybot.reply.truncate():
@ -817,12 +817,12 @@ class Privmsg(irclib.IrcCallback):
__metaclass__ = log.MetaFirewall
__firewalled__ = {'isCommand': None,
'invalidCommand': None} # Eventually callCommand.
threaded = False
public = True
alwaysCall = ()
noIgnore = False
handled = False
errored = False
alwaysCall = ()
threaded = False
noIgnore = False
Proxy = IrcObjectProxy
commandArgs = ['self', 'irc', 'msg', 'args']
# This must be class-scope, so all plugins use the same one.