Commit Graph

25 Commits

Author SHA1 Message Date
nyuszika7h
440f4beca5 Remove some trailing whitespace 2015-03-28 15:44:38 +01:00
nyuszika7h
fcdea846c1 fdie/frestart: Change quit message if aftergame 2015-03-10 14:09:10 +01:00
Vgr E.Barry
3857954d9e Replace non-printable characters in files too. 2015-03-08 10:08:12 -04:00
Vgr E.Barry
a1ef3beca2 Remake get_timestamp() to work properly with various timezones.
Today was the change to Daylight Savings for a part of the world, and
the get_timestamp() function broke because of this. This change fixes
this.
2015-03-08 09:49:36 -04:00
jacob1
805f49b985 fix crash when displaying certain characters on windows ಠ_ಠ 2015-02-16 22:53:21 -05:00
Vgr E.Barry
1ce5d69113 Improve is_admin and is_owner to check for cloak in privmsg if available. 2015-02-01 06:08:44 -05:00
Vgr E.Barry
26c81c2c03 Add timestamps in the client and module loader. 2015-01-18 09:22:03 -05:00
jacob1
21d84922e1 don't log non-admin commands that have been !fallowed to the console 2015-01-13 21:28:36 -05:00
jacob1
0f566e3e39 more clear admin command logging
puts channel name first instead of in between the command and the arguments
2015-01-13 20:47:47 -05:00
Vgr E.Barry
87bb3fc599 Remove bold from logged messages and fix templates never logging. 2015-01-13 20:16:47 -05:00
Vgr E.Barry
cecf1c6fc5 Improve a few minor things.
Prevents "Unhandled command <stuff>" from writing to file, add back
weird piece of code to prevent too many templates and "would send
message to fake nick" message and creates file on startup if it doesn't
exist.
2015-01-13 19:59:02 -05:00
Vgr E.Barry
4cc26e3ac2 Improve logger to use custom timestamps. 2015-01-13 19:59:00 -05:00
Vgr E.Barry
20eda8c5d1 Removed obsolete logging code. 2015-01-13 19:58:58 -05:00
Vgr E.Barry
55a14d6a3f Add a proper logging feature. Closes #72. 2015-01-13 19:58:55 -05:00
Vgr E.Barry
cd7aac9398 Fix random errors. Blame Vgr. 2015-01-03 17:49:29 -05:00
Vgr E.Barry
41089786d8 Remove notice if using a role command you don't have access to. 2015-01-02 20:40:15 -05:00
Vgr E.Barry
df26d8d25e Huge overhaul to the decorators + small changes.
- Merge channel and PM commands in a single decorator.
- Add many parameters for the decorators, reducing commands cluster.
- Added back the admin_only check for some commands; special-cased
'<console>'.
- Moved the checking for which roles are seen wolf in the settings; same
for seen as default.
- Added a variable to pick if one is seen as the default role or as a
villager where applicable (default: True).
- Fixed seer/oracle seeing through amnesiac.
- Some fixes to the totem chances that I forgot to add in the previous
commit.
- Removed some useless module imports.
- Moved some functions to settings.
- Changed all single-quotes to double-quotes in commands for
consistency.
- Renamed 'cmd' variable in both force and rforce commands to avoid
confusion.
- Probably a bunch of other things. Don't consider this commit
description to be 100% complete.
2015-01-02 15:57:44 -05:00
skizzerz
baa3831ce7 Fix bot's handling of WHO replies on connect:
Some IRCds always output the servername on a WHOX query even if it
wasn't asked for. Let's ask for it now and just ignore the response. The
order of parameters in WHOX is now in the order they are returned, to
make life easier.

Also tidy up the generator a tad; if we aren't using things we're
computing then there's no need to compute it at all :)
2014-12-14 23:48:24 -06:00
Vgr E.Barry
6a2eec608a Huge overhaul to the system to use accounts. 2014-12-09 19:44:06 -05:00
Vgr E.Barry
f43dba4a3f Fix some specific PM commands not working. 2014-12-07 16:33:39 -05:00
Vgr E.Barry
ecc3adba1f Fixed PM commands not working. 2014-12-06 23:28:44 -05:00
Vgr E.Barry
87f74d3265 Adds ability for the bot to be in multiple channels. 2014-12-06 17:39:21 -05:00
Vgr E.Barry
3192052add Allow admins and owners tracking via account. 2014-12-06 15:43:34 -05:00
Jimmy Cao
52e4e8c578 various tweaks 2011-12-29 17:41:25 -06:00
Jimmy Cao
945190a6e1 major restructuring 2011-12-28 17:44:11 -06:00