Commit Graph

2421 Commits

Author SHA1 Message Date
nyuszika7h
691403bc05 Merge pull request #260 from lykoss/villagergame_retribution_fix
Villagergame retribution fix
2016-11-04 12:43:23 +01:00
jacob1
6293b61d83 fix error when villagergame kills someone with a retribution totem, fixes #224 2016-11-03 23:26:30 -04:00
Ryan Schmidt
fe8734049c Merge pull request #259 from lykoss/fflags_fix
Fflags fix, fixes #254
2016-11-03 19:07:48 -07:00
jacob1
f101c62af8 Fix !fflags +j overwriting flags when account name is uppercase, fixes #254
Also allow setting flags on players that haven't played any games
2016-11-03 22:06:13 -04:00
nyuszika7h
136e41a14c Add newline for readability 2016-11-04 00:06:51 +01:00
nyuszika7h
5b761c60b5 Merge pull request #258 from lykoss/mayor
Split mayor
2016-11-03 22:42:19 +01:00
skizzerz
341cce6a8f Split mayor
Also adjust revealing totem so that it always fires after mayor, in case
someone has both. Before it would depend on the order the files were
imported, which could lead to oddities down the road.

This fixes #256
2016-11-03 16:29:15 -05:00
Vgr E. Barry
2244ed4370 Fix wrong function calls in user functions 2016-11-03 12:04:26 -04:00
Vgr E. Barry
a6424605ad Fix error when bot restarting and players were joined
AKA name error
2016-11-03 11:35:17 -04:00
Vgr E. Barry
cce2797e7b Fix name 2016-11-03 11:29:03 -04:00
Vgr E. Barry
851cebdbd7 Remove test function
Oops.
2016-11-03 11:26:39 -04:00
Vgr E. Barry
62abf6dae8 Fix small issues with fake nicks and channels 2016-11-02 23:35:13 -04:00
Vgr E. Barry
d090e573b7 Greatly improve channel handling
This also does some more bits of rudimentary user handling, but most of it still remains to be done.

Note: This adds DEV_PREFIX to botconfig and LOG_PREFIX to settings (var), make sure to properly update your bot!
2016-11-02 22:31:54 -04:00
Vgr E. Barry
49208db148 Make backwards-compatible users.add return the new "user" 2016-11-02 16:15:16 -04:00
Vgr E. Barry
e1d3e1150b Make IRCClient into a context manager
For now just a placeholder, will properly do it later.
2016-11-02 16:14:23 -04:00
Vgr E. Barry
04e7f952d3 Improve error handler 2016-11-02 15:18:32 -04:00
Vgr E. Barry
0120836669 Don't bother using a channel state in __del__
If the channel is being deleted, we don't need to care about the state. Furthermore, if the channel is being deleted as Python is shutting down, _States will have been deleted (or set to None), so we can't access it. Rather than trying to work around the garbage collection, we just set it to None and call it a day.
2016-11-02 14:52:30 -04:00
Vgr E. Barry
b4fc7ac82d Remove leftover parameter 2016-11-02 14:34:33 -04:00
Vgr E. Barry
736d1219ed Fix oversight in account handling 2016-11-01 23:04:47 -04:00
nyuszika7h
6932c42574 Fix traceback syntax highlighting
Additional text at the end (local variables) has a red border for each
line with py3tb, but not with pytb.
2016-11-01 23:16:55 +01:00
nyuszika7h
dccfd9de38 Require "!leave -force" to quit during a game 2016-11-01 15:34:49 +01:00
Vgr E. Barry
b67043d25f Small tweaks 2016-10-31 22:25:20 -04:00
Vgr E. Barry
3de4469809 Comment out yet-to-be-tested hooks 2016-10-31 22:23:42 -04:00
Vgr E. Barry
fe141b288f Allow specifying a prefix (e.g. for channels) for context.send() 2016-10-31 22:22:48 -04:00
Vgr E. Barry
5c9b13ce87 Improve NOTICE handling
The `notice` parameter is now keyword-only, and the handler now uses `functools.partial` instead of a lambda function.
2016-10-31 20:59:52 -04:00
Vgr E. Barry
12eab068be Change the user handling calls in wolfgame.py 2016-10-31 20:44:10 -04:00
Vgr E. Barry
795caa83fe Forward fixes for the new interface 2016-10-31 17:57:48 -04:00
Ryan Schmidt
7e856859cb Merge pull request #250 from lykoss/irc-hooks
Add a new hooks.py file
2016-10-31 10:13:19 -07:00
jacob1
0a7752fd15 newline changes in error logger
local variables were right next to the next traceback in errors.log even though the belonged to the previous one
2016-10-30 23:02:50 -04:00
Vgr E. Barry
d602a33efd Update handle_error to be more useful
Now, local variables from the innermost frame (i.e. where the error was raised) are printed with the traceback, and the latter includes all of the call stack (instead of just up to the innermost error handler).
2016-10-30 22:34:46 -04:00
Vgr E. Barry
a2257ce692 Fix pastebin_tb to actually use the passed traceback 2016-10-30 22:32:54 -04:00
nyuszika7h
c968e1192a Even better exception printing, like in tracebacks 2016-10-30 20:12:15 +01:00
Vgr E. Barry
e5f922d548 Improve exception printing through !eval and !exec 2016-10-30 14:03:46 -04:00
nyuszika7h
57a628f135 Update help text for !say/!act
No longer requires !f prefix so display the preferred command names
in the help text.
2016-10-29 23:26:35 +02:00
nyuszika7h
84124f3532 Fix requirements.txt to depend on the right enum module
blame @Vgr255
2016-10-29 17:28:43 +02:00
skizzerz
b3620477e5 Adjust kick reason for tempban sanctions to be more useful 2016-10-28 17:22:25 -05:00
skizzerz
21fc1f81c0 Fix error on attempting to warn with invalid expiration value 2016-10-28 17:19:12 -05:00
Vgr E. Barry
eef934c433 Custom keys can't fit in lykos. Tsk tsk @laneatomic 2016-10-28 14:37:17 -04:00
Vgr E. Barry
f3e1273dbc Add a new hooks.py file 2016-10-27 19:15:33 -04:00
Ryan Schmidt
af96a2544e Merge pull request #248 from lykoss/context-base-stuff
New IRCContext, Channel and User classes
2016-10-27 15:26:45 -07:00
Vgr E. Barry
317a5edab9 @skizzerz must *obviously* be an op! 2016-10-27 18:15:29 -04:00
nyuszika7h
5eba188607 Also fix idols when wild child itself changes nick 2016-10-27 20:49:56 +02:00
nyuszika7h
a0092b981f Update wild child's idol when they change nick
Closes #249.
2016-10-27 20:42:11 +02:00
Vgr E. Barry
349433c9ab Do a direct lookup for hostmasks for stasis. 2016-10-27 09:13:07 -04:00
Vgr E. Barry
2877abea55 Update as per @skizzerz's comments 2016-10-26 20:06:29 -04:00
skizzerz
430b73ef33 Re-do 85972db5 to not be utterly idiotic 2016-10-25 21:29:53 -05:00
Vgr E. Barry
85972db5b1 Update Event to allow arbitrary keyword arguments
Comments are on the same line as the possibly-failing line; if it fails,
the traceback will include that line (so it will be obvious what the
error is without looking at the source).
2016-10-25 21:25:33 -04:00
Vgr E. Barry
5ec273c6e0 New IRCContext, Channel and User classes
Right now these don't do anything, but in the future they will be how
we'll do channel and user handling.
2016-10-25 18:20:31 -04:00
nyuszika7h
0ad4af4240 Change !fstop back to require prefix
Per @skizzerz's comment on IRC, you're forcing the game to stop,
as it would also stop on its own when it ends normally.
2016-10-25 21:42:28 +02:00
nyuszika7h
281ac8e21e Don't require !f prefix for admin commands where unambiguous
I didn't change !fflags to !flags as it may be a good idea to add
a !flags command to allow users to view their own flags.
2016-10-25 21:07:47 +02:00