cleanup the sentence feedback
This commit is contained in:
parent
5293e8dc24
commit
bd95764f9f
|
@ -42,14 +42,14 @@ class Alias(Module):
|
||||||
self.config.add_section(self.__class__.__name__)
|
self.config.add_section(self.__class__.__name__)
|
||||||
|
|
||||||
self.config.set(self.__class__.__name__, whats[2], ' '.join(whats[3:]))
|
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)
|
return self.reply(connection, replypath, replystr)
|
||||||
if whats[0] == '!alias' and whats[1] == 'remove' and len(whats) >= 3:
|
if whats[0] == '!alias' and whats[1] == 'remove' and len(whats) >= 3:
|
||||||
if not self.config.has_section(self.__class__.__name__):
|
if not self.config.has_section(self.__class__.__name__):
|
||||||
self.config.add_section(self.__class__.__name__)
|
self.config.add_section(self.__class__.__name__)
|
||||||
|
|
||||||
if self.config.remove_option(self.__class__.__name__, whats[2]):
|
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)
|
return self.reply(connection, replypath, replystr)
|
||||||
elif whats[0] == '!alias' and whats[1] == 'list':
|
elif whats[0] == '!alias' and whats[1] == 'list':
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue