Commit Graph

74 Commits

Author SHA1 Message Date
Valentin Lorentz
696254ff1b Use irc.isChannel instead of ircutils.isChannel when possible.
It's aware of the network's 'chantypes'.
2019-08-04 21:52:40 +02:00
Valentin Lorentz
0998651f61 Aka: Escape the command in help strings, so they can be copy-pasted into @aka add. 2017-10-01 10:40:23 +02:00
Valentin Lorentz
087fa71d63 Aka: Tell in the help message what channel the aka is for. 2017-08-20 19:55:28 +02:00
Valentin Lorentz
5272bf3a86 Aka: Fix combination of required and optional arguments.
Was broken by 7f43727835 (why?)
2017-08-18 18:30:22 +02:00
Valentin Lorentz
7f43727835 Aka: Proper mitigation of expansion bomb. 2017-04-17 11:05:04 +02:00
Valentin Lorentz
3075a41a3b Aka: Allow more than one in an aka. Closes GH-1283. 2017-04-17 10:53:26 +02:00
Valentin Lorentz
5452d4194a Aka: Remove first elements of the 'args' list in a single pass. 2017-04-17 10:31:43 +02:00
Valentin Lorentz
6936e3d634 Aka: make @list --keys reply on a single line, even if supybot.reply.oneToOne is False. Closes GH-1225. 2016-03-11 21:00:01 +01:00
Valentin Lorentz
56d4cbec08 Aka: Fix Python 2 compatibility. 2015-12-02 09:06:34 +01:00
Valentin Lorentz
3fde279e50 Aka: Fix database name. 2015-12-02 07:55:00 +00:00
Valentin Lorentz
e1d0c232ea Aka: Deprecate SQLAlchemy backend. 2015-11-07 18:29:43 +01:00
James Lu
dbd12e9c0c Aka: allow filtering 'list' by Aka lock status
This adds two mutually incompatible options to Aka list: --locked and --unlocked
2015-08-29 17:21:17 -07:00
Valentin Lorentz
c3a2c800f1 Remove need for 2to3. 2015-08-11 16:50:23 +02:00
Valentin Lorentz
2c380a4c3a Remove fix_xrange. 2015-08-10 19:36:07 +02:00
Valentin Lorentz
216c5d213f Replace sys.version_info[0] usages with minisix.PY{2,3}. 2015-08-09 00:23:03 +02:00
Valentin Lorentz
be118c3338 Remove use of fix_dict fixer. 2015-08-08 23:08:49 +02:00
James Lu
97228afb7d Aka.search: be case insensitive and handle "not found" errors correctly
Closes #1110.
2015-05-18 14:53:30 -07:00
James Lu
308eea922e Aka: add a 'search' command.
Closes ProgVal/Limnoria#1081.
2015-04-26 22:20:24 -07:00
James Lu
5bd2c5eaaf Aka: add 'aka list --keys'
This allows one to view just the list of Akas without their commands,
similar to the older 'list aka' behavior.
2015-01-14 21:39:31 -05:00
GLolol
c492cb40e1 Aka: add a missing '.' in the error message 2014-12-26 16:21:20 -05:00
GLolol
b76cff73a8 Revert "Aka: update converters to use 'channel' instead of 'somethingWithoutSpaces'"
This reverts commit 231c250b75.
2014-12-26 16:18:39 -05:00
GLolol
4a70a9a79c Merge branch 'testing' into aka-2
Conflicts:
	plugins/Aka/plugin.py
2014-12-26 14:05:32 -05:00
James Lu
231c250b75 Aka: update converters to use 'channel' instead of 'somethingWithoutSpaces' 2014-12-22 19:57:26 -08:00
GLolol
a1a7864f54 Aka: update list command 2014-12-17 07:35:26 -08:00
James Lu
26df32086d Aka: catch with error if 'aka list' response is empty 2014-12-16 16:52:14 -08:00
James Lu
f802f77904 Aka: update listCommands override to only include built in cmds
The old behavior is superseded by 'aka list'. This makes it easier for people to find Aka plugin's core commands, as
'list Aka' won't be filled with random, irrelevant alias definitions.
2014-12-16 16:40:42 -08:00
GLolol
fe778c60bf Aka: add 'list' command (Closes ProgVal/Limnoria#572) 2014-12-16 16:40:42 -08:00
GLolol
40df743cbf Aka: Fix typo and help for 'show'
Help for 'aka show' should now mentions the --channel argument (this
was implemented but not mentioned).
2014-12-16 14:25:43 -08:00
James Lu
74655e4203 Add help for the following plugins (ref #903):
- Admin
- Alias
- AutoMode
- Channel
- ChannelLogger
- ChannelStats
- Conditional
- Config
- Ctcp
- Dict

- Also, proofread Aka's help from #904 for grammar.
2014-11-29 23:18:44 -08:00
Mikaela Suomalainen
567386c8e8 Aka: add the plugin help
I assume that everyone knows what aliases are. Please see also issue
 #903.
2014-11-16 19:34:23 +02:00
GLolol
a5224fe84f Aka: fix a bug in aka show where None is returned for non-existant aliases 2014-10-03 21:56:09 +02:00
nyuszika7h
7f1d990298 Aka: Add set command to change existing aliases 2014-09-18 13:16:56 +02:00
Valentin Lorentz
0a1bf6db22 Aka: Add @show command. Closes GH-572. Closes GH-710. 2014-07-13 21:19:48 +02:00
Valentin Lorentz
4fe74ed397 Merge branch 'aka-sqlite3' into speed-up-2to3 2014-02-02 22:15:43 +01:00
Valentin Lorentz
d25a3c0724 Remove useless class. 2014-01-23 10:20:38 +01:00
Valentin Lorentz
e4ce7356c6 Aka: Use automatic incrementation when adding an alias. 2014-01-22 16:44:17 +01:00
Valentin Lorentz
5aa0c8cfbd Aka: Add SQLite3 backend. 2014-01-22 15:16:12 +01:00
Valentin Lorentz
06fdaa792f Continue accelerating the 2to3 step (remove fix_map). 2014-01-21 10:57:38 +01:00
Valentin Lorentz
162b9ef709 Aka: Add length limit of command names in order to limit the number of database queries.
There were a lot of database queries (as much as words in the whole command) for non-aka commands.
2013-12-24 14:38:26 +00:00
Valentin Lorentz
83e1d1b91b Fix previous commit. 2013-12-23 17:51:15 +01:00
Valentin Lorentz
764c788aa6 Revert "Aka: Allow optional arguments and $* together, and also multiple instances of $*."
This reverts commit 774285ef03.

Conflicts:
	plugins/Aka/plugin.py
2013-12-23 17:41:56 +01:00
Valentin Lorentz
01278dc56c Aka: Fix 'factorial-complexity' recursion and command overriding. 2013-12-11 16:01:01 +00:00
Valentin Lorentz
56570b3c9c Aka: Make sure the length of the 'args' list is always strictly decreasing when making a recursive call. 2013-12-05 12:35:02 +00:00
Valentin Lorentz
e99ad36667 Aka: Fix commit ddbadcafff (again). 2013-11-27 17:57:30 +01:00
Valentin Lorentz
feebaca292 Aka: Fix commit ddbadcafff. 2013-11-27 17:49:03 +01:00
Valentin Lorentz
ddbadcafff Alias & Aka: Add memory and nesting limits. Closes GH-525. 2013-11-27 17:38:24 +01:00
Valentin Lorentz
25dc7e092e Fix precedence of shorter Aka commands in Aka. 2013-11-09 21:19:19 +00:00
Valentin Lorentz
3883b3dfd3 Fix infinite recursion in Aka when calling a command in Aka which has a
prefix that is another Aka command.
2013-11-09 20:45:44 +00:00
Valentin Lorentz
a67b31c9ea Aka: Fix typo (Error, not error). 2013-10-23 13:42:02 +00:00
Valentin Lorentz
d78ae3de7b Aka: Fix encoding issue with Python 2. 2013-08-25 15:41:06 +02:00