mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Some extra periods.
This commit is contained in:
parent
4348b41178
commit
501b642796
@ -247,7 +247,7 @@ class OSU(callbacks.Privmsg):
|
|||||||
elif len(emails) == 1:
|
elif len(emails) == 1:
|
||||||
irc.reply(emails[0])
|
irc.reply(emails[0])
|
||||||
else:
|
else:
|
||||||
irc.reply('Possible matches: %s' % ', '.join(emails))
|
irc.reply('Possible matches: %s.' % ', '.join(emails))
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
irc.error(utils.exnToString(e))
|
irc.error(utils.exnToString(e))
|
||||||
email = privmsgs.thread(email)
|
email = privmsgs.thread(email)
|
||||||
|
@ -122,9 +122,9 @@ class Python(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
if hasattr(obj, '__doc__'):
|
if hasattr(obj, '__doc__'):
|
||||||
irc.reply(normalize(obj.__doc__))
|
irc.reply(normalize(obj.__doc__))
|
||||||
else:
|
else:
|
||||||
irc.reply('%s has no documentation' % name)
|
irc.reply('%s has no documentation.' % name)
|
||||||
else:
|
else:
|
||||||
s = '%s has no method %s' % (moduleName, funcName)
|
s = '%s has no method %s.' % (moduleName, funcName)
|
||||||
irc.reply(s)
|
irc.reply(s)
|
||||||
elif moduleName:
|
elif moduleName:
|
||||||
newmodule = getModule(moduleName)
|
newmodule = getModule(moduleName)
|
||||||
@ -139,7 +139,7 @@ class Python(callbacks.PrivmsgCommandAndRegexp):
|
|||||||
else:
|
else:
|
||||||
irc.error('%s has no documentation.' % name)
|
irc.error('%s has no documentation.' % name)
|
||||||
else:
|
else:
|
||||||
s = '%s has no function %s' % (moduleName, funcName)
|
s = '%s has no function %s.' % (moduleName, funcName)
|
||||||
irc.error(s)
|
irc.error(s)
|
||||||
else:
|
else:
|
||||||
if name in sys.modules:
|
if name in sys.modules:
|
||||||
|
@ -188,7 +188,7 @@ class QuoteGrabs(plugins.ChannelDBHandler, callbacks.Privmsg):
|
|||||||
WHERE nickeq(nick, %s)
|
WHERE nickeq(nick, %s)
|
||||||
ORDER BY id DESC LIMIT 1""", nick)
|
ORDER BY id DESC LIMIT 1""", nick)
|
||||||
if cursor.rowcount == 0:
|
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:
|
else:
|
||||||
text = cursor.fetchone()[0]
|
text = cursor.fetchone()[0]
|
||||||
irc.reply(text)
|
irc.reply(text)
|
||||||
@ -208,7 +208,7 @@ class QuoteGrabs(plugins.ChannelDBHandler, callbacks.Privmsg):
|
|||||||
WHERE nick LIKE %s
|
WHERE nick LIKE %s
|
||||||
ORDER BY id ASC""", nick)
|
ORDER BY id ASC""", nick)
|
||||||
if cursor.rowcount == 0:
|
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:
|
else:
|
||||||
l = []
|
l = []
|
||||||
for (id, quote) in cursor.fetchall():
|
for (id, quote) in cursor.fetchall():
|
||||||
|
@ -425,7 +425,7 @@ class RichReplyMethods(object):
|
|||||||
|
|
||||||
def errorNoCapability(self, capability, s='', Raise=False, **kwargs):
|
def errorNoCapability(self, capability, s='', Raise=False, **kwargs):
|
||||||
if isinstance(capability, basestring): # checkCommandCapability!
|
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)
|
self.msg.prefix, capability)
|
||||||
if not self._getConfig(conf.supybot.reply.noCapabilityError):
|
if not self._getConfig(conf.supybot.reply.noCapabilityError):
|
||||||
v = self._getConfig(conf.supybot.replies.noCapability)
|
v = self._getConfig(conf.supybot.replies.noCapability)
|
||||||
@ -433,7 +433,7 @@ class RichReplyMethods(object):
|
|||||||
self._error(s, Raise, **kwargs)
|
self._error(s, Raise, **kwargs)
|
||||||
else:
|
else:
|
||||||
log.warning('Denying %s for some unspecified capability '
|
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)
|
v = self._getConfig(conf.supybot.replies.genericNoCapability)
|
||||||
self._error(self.__makeReply(v, s), Raise, **kwargs)
|
self._error(self.__makeReply(v, s), Raise, **kwargs)
|
||||||
|
|
||||||
@ -506,9 +506,9 @@ class IrcObjectProxy(RichReplyMethods):
|
|||||||
return
|
return
|
||||||
log.debug('Calling invalidCommands.')
|
log.debug('Calling invalidCommands.')
|
||||||
for cb in self.irc.callbacks:
|
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:
|
if self.finished:
|
||||||
log.debug('Finished calling invalidCommand: %s', cb.name())
|
log.debug('Finished calling invalidCommand: %s.', cb.name())
|
||||||
return
|
return
|
||||||
if hasattr(cb, 'invalidCommand'):
|
if hasattr(cb, 'invalidCommand'):
|
||||||
cb.invalidCommand(self, self.msg, self.args)
|
cb.invalidCommand(self, self.msg, self.args)
|
||||||
@ -645,7 +645,7 @@ class IrcObjectProxy(RichReplyMethods):
|
|||||||
maximumMores = conf.supybot.reply.mores.maximum()
|
maximumMores = conf.supybot.reply.mores.maximum()
|
||||||
maximumLength = allowedLength * maximumMores
|
maximumLength = allowedLength * maximumMores
|
||||||
if len(s) > maximumLength:
|
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))
|
maximumLength, len(s))
|
||||||
s = s[:maximumLength]
|
s = s[:maximumLength]
|
||||||
if len(s) < allowedLength or conf.supybot.reply.truncate():
|
if len(s) < allowedLength or conf.supybot.reply.truncate():
|
||||||
@ -817,12 +817,12 @@ class Privmsg(irclib.IrcCallback):
|
|||||||
__metaclass__ = log.MetaFirewall
|
__metaclass__ = log.MetaFirewall
|
||||||
__firewalled__ = {'isCommand': None,
|
__firewalled__ = {'isCommand': None,
|
||||||
'invalidCommand': None} # Eventually callCommand.
|
'invalidCommand': None} # Eventually callCommand.
|
||||||
threaded = False
|
|
||||||
public = True
|
public = True
|
||||||
alwaysCall = ()
|
|
||||||
noIgnore = False
|
|
||||||
handled = False
|
handled = False
|
||||||
errored = False
|
errored = False
|
||||||
|
alwaysCall = ()
|
||||||
|
threaded = False
|
||||||
|
noIgnore = False
|
||||||
Proxy = IrcObjectProxy
|
Proxy = IrcObjectProxy
|
||||||
commandArgs = ['self', 'irc', 'msg', 'args']
|
commandArgs = ['self', 'irc', 'msg', 'args']
|
||||||
# This must be class-scope, so all plugins use the same one.
|
# This must be class-scope, so all plugins use the same one.
|
||||||
|
Loading…
Reference in New Issue
Block a user