More spelling/capitalization normalization.

This commit is contained in:
Jeremy Fincher 2004-08-19 13:33:34 +00:00
parent 36418e8ca6
commit d36459ab0b
8 changed files with 15 additions and 13 deletions

View File

@ -77,7 +77,7 @@ def configure(advanced):
conf.registerPlugin('Bugzilla', True) conf.registerPlugin('Bugzilla', True)
output("""The Bugzilla plugin has the functionality to watch for URLs output("""The Bugzilla plugin has the functionality to watch for URLs
that match a specific pattern (we call this a snarfer). When that match a specific pattern (we call this a snarfer). When
a supybot sees such a URL, it will parse the web page for a Supybot sees such a URL, it will parse the web page for
information and reply with the results.""") information and reply with the results.""")
if yn('Do you want this bug snarfer enabled by default?', default=False): if yn('Do you want this bug snarfer enabled by default?', default=False):
conf.supybot.plugins.Bugzilla.bugSnarfer.setValue(True) conf.supybot.plugins.Bugzilla.bugSnarfer.setValue(True)

View File

@ -55,7 +55,7 @@ def configure(advanced):
conf.registerPlugin('Ebay', True) conf.registerPlugin('Ebay', True)
output("""The Ebay plugin has the functionality to watch for URLs output("""The Ebay plugin has the functionality to watch for URLs
that match a specific pattern (we call this a snarfer). When that match a specific pattern (we call this a snarfer). When
supybot sees such a URL, he will parse the web page for Supybot sees such a URL, he will parse the web page for
information and reply with the results.""") information and reply with the results.""")
if yn('Do you want the Ebay snarfer enabled by default?'): if yn('Do you want the Ebay snarfer enabled by default?'):
conf.supybot.plugins.Ebay.auctionSnarfer.setValue(True) conf.supybot.plugins.Ebay.auctionSnarfer.setValue(True)

View File

@ -299,7 +299,7 @@ class Filter(callbacks.Privmsg):
_revcode = dict([(y, x) for (x, y) in _code.items()]) _revcode = dict([(y, x) for (x, y) in _code.items()])
_unmorsere = re.compile('([.-]+)') _unmorsere = re.compile('([.-]+)')
def unmorse(self, irc, msg, args): def unmorse(self, irc, msg, args):
"""<morse code text> """<Morse code text>
Does the reverse of the morse command. Does the reverse of the morse command.
""" """
@ -317,7 +317,7 @@ class Filter(callbacks.Privmsg):
def morse(self, irc, msg, args): def morse(self, irc, msg, args):
"""<text> """<text>
Gives the morse code equivalent of a given string. Gives the Morse code equivalent of a given string.
""" """
text = privmsgs.getArgs(args) text = privmsgs.getArgs(args)
L = [] L = []

View File

@ -111,7 +111,7 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
try: try:
channel = msg.args[1] channel = msg.args[1]
(irc, msg) = self.joins.pop(channel) (irc, msg) = self.joins.pop(channel)
irc.error('Cannot join %s, I\'m not identified with the nickserv.' irc.error('Cannot join %s, I\'m not identified with the NickServ.'
% channel) % channel)
except KeyError: except KeyError:
self.log.debug('Got 515 without Admin.join being called.') self.log.debug('Got 515 without Admin.join being called.')
@ -192,7 +192,7 @@ class Admin(privmsgs.CapabilityCheckingPrivmsg):
self.log.debug('Got 433 without Admin.nick being called.') self.log.debug('Got 433 without Admin.nick being called.')
def do438(self, irc, msg): def do438(self, irc, msg):
"""Can't change nick while in +m channel. Could just be freenode.""" """Can't change nick while in +m channel. Could just be Freenode."""
irc = self.pendingNickChanges.get(irc, None) irc = self.pendingNickChanges.get(irc, None)
if irc is not None: if irc is not None:
channel = msg.args[-1].strip().split()[-1][1:-1] channel = msg.args[-1].strip().split()[-1][1:-1]

View File

@ -250,7 +250,7 @@ class Misc(callbacks.Privmsg):
newest ='The newest version available online is %s.'%newest.strip() newest ='The newest version available online is %s.'%newest.strip()
except webutils.WebError, e: except webutils.WebError, e:
self.log.warning('Couldn\'t get website version: %r', e) self.log.warning('Couldn\'t get website version: %r', e)
newest = 'I could\'t fetch the newest version ' \ newest = 'I couldn\'t fetch the newest version ' \
'from the Supybot website.' 'from the Supybot website.'
s = 'The current (running) version of this Supybot is %s. %s' % \ s = 'The current (running) version of this Supybot is %s. %s' % \
(conf.version, newest) (conf.version, newest)

View File

@ -99,7 +99,7 @@ def loadPluginModule(name, ignoreDeprecation=False):
return module return module
def loadPluginClass(irc, module, register=None): def loadPluginClass(irc, module, register=None):
"""Loads the plugin Class from the given module into the given irc.""" """Loads the plugin Class from the given module into the given Irc."""
try: try:
cb = module.Class() cb = module.Class()
except AttributeError: except AttributeError:
@ -154,7 +154,7 @@ class holder(object):
class LogProxy(object): class LogProxy(object):
"""<text> """<text>
Logs <text> to the global supybot log at critical priority. Useful for Logs <text> to the global Supybot log at critical priority. Useful for
marking logfiles for later searching. marking logfiles for later searching.
""" """
__name__ = 'log' # Necessary for help. __name__ = 'log' # Necessary for help.
@ -356,7 +356,7 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
else: else:
# This should never happen, so I haven't bothered updating # This should never happen, so I haven't bothered updating
# this error string to say --allow-eval. # this error string to say --allow-eval.
irc.error('You must run supybot with the --allow-eval ' irc.error('You must run Supybot with the --allow-eval '
'option for this command to be enabled.') 'option for this command to be enabled.')
def _exec(self, irc, msg, args): def _exec(self, irc, msg, args):
@ -373,7 +373,7 @@ class Owner(privmsgs.CapabilityCheckingPrivmsg):
irc.reply(utils.exnToString(e)) irc.reply(utils.exnToString(e))
else: else:
# This should never happen. # This should never happen.
irc.error('You must run supybot with the --allow-eval ' irc.error('You must run Supybot with the --allow-eval '
'option for this command to be enabled.') 'option for this command to be enabled.')
else: else:
def eval(self, irc, msg, args): def eval(self, irc, msg, args):

View File

@ -258,7 +258,7 @@ def toXml(msg, pretty=True, includeTime=True):
def prettyPrint(msg, addRecipients=False): def prettyPrint(msg, addRecipients=False):
"""Provides a client-friendly string form for messages. """Provides a client-friendly string form for messages.
IIRC, I copied BitchX's (or was it xchat's?) format for messages. IIRC, I copied BitchX's (or was it XChat's?) format for messages.
""" """
def nickorprefix(): def nickorprefix():
return msg.nick or msg.prefix return msg.nick or msg.prefix

View File

@ -402,7 +402,7 @@ class FormatParser(object):
def wrap(s, length): def wrap(s, length):
if length < 100: if length < 100:
raise ValueError, 'Use with a length greater than 100, sucka.' raise ValueError, 'Use ircutils.wrap with a length greater than 100.'
processed = [] processed = []
chunks = textwrap.wrap(s, length) chunks = textwrap.wrap(s, length)
context = None context = None
@ -508,6 +508,8 @@ mircColors = IrcDict({
'pink': '13', 'pink': '13',
'dark grey': '14', 'dark grey': '14',
'light grey': '15', 'light grey': '15',
'dark gray': '14',
'light gray': '15',
}) })
# We'll map integers to their string form so mircColor is simpler. # We'll map integers to their string form so mircColor is simpler.