Vgr E. Barry
3e61e9ec6a
Beauty is in the eye of the tiger
2016-11-15 20:37:40 -05:00
Vgr E. Barry
360204bf43
Massively improve user handling
...
This changes how users are handled, making it less likely to encounter duplicate users; in normal circumstances, duplicates shouldn't happen.
2016-11-15 19:54:42 -05:00
jacob1
01924504fe
Fix day never ending when the only votes are on the bot at day timeout
2016-11-14 23:34:09 -05:00
nyuszika7h
2c3aafc101
Improvements to !rules
...
* RULES is now not defined in settings.py, only in botconfig.py.
* If there are no rules specified, a default message is shown
instructing users to configure it.
* The "#CHANNEL channel rules: " prefix is now automatically prepended
(skipped if the string already contains that,
for backwards-compatibility).
* The prefix and the no-rules message can be customized
as they are in messages.py now.
2016-11-13 11:54:48 +01:00
Trigonoculus
629fe51fd7
Make rules string unconfigured by default ( #269 )
...
The old link was outdated anyway, and other networks may not use the same rules as freenode, so it should be just configured in botconfig.py like it always could.
2016-11-13 11:32:30 +01:00
skizzerz
64e6a90921
*hic*
...
Make doctor immunize work against doomsayer sickness and pestilence
totem
2016-11-12 23:46:45 -06:00
Vgr E. Barry
e161325d01
Remove 'channels' from the user interface
...
We don't use it, as the only places where we'd need to, it's only one channel, and the surrounding code needs to add the user to the channel and vice-versa, so that's pretty pointless.
2016-11-10 10:44:38 -05:00
Vgr E. Barry
52b28b4317
Fix case-sensitiveness on weird IRCds
2016-11-08 17:04:32 -05:00
Ryan Schmidt
8039b5e2a1
Merge pull request #266 from lykoss/werecrow_kill
...
Allow werecrow to both observe and kill at the same time
2016-11-07 23:13:10 -07:00
jacob1
0c8afe4f64
Fix db error when adding a tempban sanction on a player that already has one, fixes #245
...
Can happen when doing it manually, or when adding a warning after it expired but before expire_tempbans() is called
2016-11-07 21:10:18 -05:00
jacob1
44433c5979
also update werecrow message in en.json
2016-11-07 21:07:33 -05:00
jacob1
cd118dbabe
allow werecrow to both observe and kill at the same time
2016-11-07 20:52:58 -05:00
Vgr E. Barry
d6f2882741
Fix syntax error
...
Turns out that's 3.5+
2016-11-06 22:18:17 -05:00
Vgr E. Barry
fb2ece45e6
Clean up some of doomsayer's code
2016-11-06 21:54:29 -05:00
Vgr E. Barry
7c753b2810
Improve the error handler
...
Also, thanks to @nyuszika7h for the uuid idea. I took his early draft and implemented it properly as part of the refactoring I did.
2016-11-06 21:43:01 -05:00
Vgr E. Barry
a39ded6053
Improve handling of fake contexts
2016-11-06 17:27:09 -05:00
Vgr E. Barry
61bca595c5
Fix small oversight
2016-11-06 17:26:46 -05:00
jacob1
3db042967d
fix adding/removing tempbans to hostmasks
2016-11-05 11:40:16 -04:00
jacob1
fde2ce94db
fix bot pinging fake players after !fstop
2016-11-05 11:13:35 -04:00
jacob1
5d0021de7d
fix possible error when setting flags on users
2016-11-05 00:21:15 -04:00
jacob1
d150e802f1
typo fix
2016-11-05 00:11:10 -04:00
Ryan Schmidt
cf21627afb
Merge pull request #264 from lykoss/fix-villagergame-player-limit
...
Fix villagergame appearing above 9p
2016-11-04 13:48:01 -07:00
nyuszika7h
e4f696abe6
Fix villagergame appearing above 9p
...
In join phase, var.PLAYERS is empty, so var.ALL_PLAYERS needs to be
checked instead.
(While I'm at it, changed it to <= 9 rather than < 10, just for
consistency with the rest of the code.)
Fixes #263 .
2016-11-04 21:45:29 +01:00
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