Aka, Alias: Remove mentions of Alias in the Aka documentation, and explain Alias is deprecated

This commit is contained in:
Valentin Lorentz 2021-04-05 14:50:30 +02:00
parent 49eef1cd7d
commit 21657f31ee
2 changed files with 6 additions and 5 deletions

View File

@ -498,10 +498,8 @@ class AkaHTTPCallback(httpserver.SupyHTTPServerCallback):
class Aka(callbacks.Plugin): class Aka(callbacks.Plugin):
"""Aka is the improved version of the Alias plugin. It stores akas outside """This plugin allows users to define aliases to commands and combinations
of the bot.conf, which doesn't have risk of corrupting the bot.conf file of commands (via nesting)."""
(this often happens when there are Unicode issues). Aka also
introduces multi-worded akas."""
def __init__(self, irc): def __init__(self, irc):
self.__parent = super(Aka, self) self.__parent = super(Aka, self)

View File

@ -236,7 +236,10 @@ def makeNewAlias(name, alias):
class Alias(callbacks.Plugin): class Alias(callbacks.Plugin):
"""This plugin allows users to define aliases to commands and combinations """This plugin allows users to define aliases to commands and combinations
of commands (via nesting).""" of commands (via nesting).
This plugin is only kept for backward compatibility, you should use the
built-in Aka plugin instead (you can migrate your existing aliases using
the 'importaliasdatabase' command."""
def __init__(self, irc): def __init__(self, irc):
self.__parent = super(Alias, self) self.__parent = super(Alias, self)
self.__parent.__init__(irc) self.__parent.__init__(irc)