add !alias list that displays the existing alias commands. limited utility, really.
This commit is contained in:
parent
a7f0070a39
commit
fd7834756b
@ -51,6 +51,14 @@ class Alias(Module):
|
||||
if self.config.remove_option(self.__class__.__name__, whats[2]):
|
||||
replystr = 'removed alias ' + whats[2]
|
||||
return self.reply(connection, replypath, replystr)
|
||||
elif whats[0] == '!alias' and whats[1] == 'list':
|
||||
try:
|
||||
alist = self.config.options(self.__class__.__name__)
|
||||
self.remove_metaoptions(alist)
|
||||
alist.sort()
|
||||
liststr = ', '.join(alist)
|
||||
return self.reply(connection, replypath, liststr)
|
||||
except NoSectionError: pass
|
||||
except NoOptionError: pass
|
||||
except NoSectionError: pass
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user