cleanup the sentence feedback

This commit is contained in:
Brian S. Stephan 2011-01-06 22:12:19 -06:00
parent 5293e8dc24
commit bd95764f9f
1 changed files with 2 additions and 2 deletions

View File

@ -42,14 +42,14 @@ class Alias(Module):
self.config.add_section(self.__class__.__name__)
self.config.set(self.__class__.__name__, whats[2], ' '.join(whats[3:]))
replystr = 'added alias ' + whats[2]
replystr = 'Added alias ' + whats[2] + '.'
return self.reply(connection, replypath, replystr)
if whats[0] == '!alias' and whats[1] == 'remove' and len(whats) >= 3:
if not self.config.has_section(self.__class__.__name__):
self.config.add_section(self.__class__.__name__)
if self.config.remove_option(self.__class__.__name__, whats[2]):
replystr = 'removed alias ' + whats[2]
replystr = 'Removed alias ' + whats[2] + '.'
return self.reply(connection, replypath, replystr)
elif whats[0] == '!alias' and whats[1] == 'list':
try: