psrcek
a2daa5c0b6
removed unnecesarry str calls
2016-06-22 15:48:20 +02:00
psrcek
5da7180bfd
derp... integer division
2016-06-22 15:35:52 +02:00
psrcek
ae44dade80
fixed derp, should use math.ceil instead of +1
2016-06-22 15:21:28 +02:00
psrcek
5788cd0b3e
Fixed page showing 1 page too little
2016-06-22 15:13:35 +02:00
psrcek
00e936532a
Added max page number
2016-06-21 22:12:13 +02:00
PixelSergey
f0f32abbfa
Final fix to lol list pageing
...
Can someone tell me whether it's paging or pageing or both?
2016-05-31 17:52:56 +03:00
PixelSergey
5d00af8ced
Fix checking for page 0 in saylol.py listing
...
I hope I'm not making this too messy
2016-05-31 17:34:49 +03:00
PixelSergey
1e34a9b39b
Fix saylol.py for dico
...
By the way, dico, some of your line notes on the previous commit were completely wrong
Once again, this has been tested
I didn't clean up the code, I think it's good enough. And it works perfectly.
2016-05-31 17:09:42 +03:00
PixelSergey
6f4357fad7
Add lol list pageing.
...
Tested, works perf.
2016-05-31 15:39:34 +03:00
Dico200
1750c82208
Changed all CommandExecutor arguments
...
Added arguments command and label to all command executor functions,
hopefully for massive performance increase.
This is due to the following mess in PythonLoader:
``` Java
@Override
public boolean onCommand(CommandSender sender, Command command, String
label, String[] args) {
boolean result;
if (argcount == -1) {
try {
result = call(4, sender, command, label, args);
argcount = 4;
} catch (PyException e) {
//this could goof up someone ... they'll probably yell at us and
eventually read this code ... fuck them
if (e.type == Py.TypeError && (e.value.toString().endsWith("takes
exactly 3 arguments (4 given)") || e.value.toString().endsWith("takes
exactly 4 arguments (5 given)"))) {
result = call(3, sender, command, label, args);
argcount = 3;
} else if (e.type == Py.TypeError && (e.value.toString().endsWith("takes
exactly 2 arguments (4 given)") || e.value.toString().endsWith("takes
exactly 3 arguments (5 given)"))) {
result = call(2, sender, command, label, args);
argcount = 2;
} else {
throw e;
}
}
} else {
result = call(argcount, sender, command, label, args);
}
return result;
}
```
Note: Still WIP on reports - I'm working on making it keep solved
reports to fix issue 10
2015-03-19 23:51:33 +01:00
jomo
9a916ed2cd
change indentation from 2 spaces to 4, fix #5
2015-01-06 23:38:42 +01:00
jomo
f9e09d0f86
small bugfixes
2014-08-07 22:41:02 +02:00
jomo
6c164a054a
case insensitive /lol search
2014-08-07 04:21:16 +02:00
jomo
286ca74f71
fix %s
2014-08-07 02:10:36 +02:00
jomo
b31e887aa4
better /lol search
2014-08-07 01:39:12 +02:00
jomo
b1a3a92e49
apply file read/save helpers
2014-07-27 19:42:33 +02:00
jomo
efc3ee439c
better use of plugin_header in saylol
2014-07-27 05:41:25 +02:00
jomo
e04053e46f
add /lol search <text>
2014-07-27 05:28:31 +02:00
jomo
70668f0210
fix broken broadcast
2014-07-20 17:53:19 +02:00
jomo
1430a454ed
removed camelcase, added more coding style to readme
2014-07-16 00:33:43 +02:00
jomo
7981591fb7
using jython 2.7b2
2014-07-13 17:10:14 +02:00
jomo
5ceb3f096c
fix out of range /lol id
2014-07-08 02:17:37 +02:00
jomo
98620428ec
HUGE code cleanup
2014-06-10 01:31:03 +02:00
jomo
099de5abe1
remove executable bit
2014-06-07 20:13:10 +02:00
jomo
a9a540a73e
fix path
2014-05-17 01:17:05 +02:00
jomo
9f1ed1fb66
first commit via git
2014-05-16 23:04:40 +02:00