jesopo
a87196c608
Change Utils.color to take a string to wrap in color
2018-09-21 11:39:09 +01:00
jesopo
b8aca72861
Support hooking functions in modules with @Utils.hook
2018-09-19 12:37:41 +01:00
jesopo
fda223ee46
Implement __str__ and __repr__ on Utils.IRCHostmask
2018-09-17 21:49:32 +01:00
jesopo
840957fda4
Utils.irc_lower was returning an unchanged string because .replace on a string
...
returns a new string
2018-09-17 13:09:45 +01:00
jesopo
b4397071ed
Oops, this isn't C#.
2018-09-13 11:50:18 +01:00
jesopo
8e003281b6
Support "nickname@hostname" hostmask, even though it's almost certain it'll
...
never be seen in the wild.
2018-09-13 11:46:42 +01:00
jesopo
461b4f4083
Add missing argument to Utils._multi_replace calls in irc_lower
2018-09-12 13:48:19 +01:00
jesopo
bb372964d6
.lower() is also not valid for ascii case mapping
2018-09-12 10:33:01 +01:00
jesopo
362bf7cec7
.lower() is not valid as "Á" is not the same as "á" within RFC1459 casemapping
2018-09-12 10:28:06 +01:00
jesopo
08aa72de82
Support 'strict-rfc1459' case mapping
2018-09-12 10:18:12 +01:00
jesopo
a8bf248d47
Fix copypaste fail in Utils that meant we had no RFC1459_LOWER
2018-09-11 10:14:37 +01:00
jesopo
6c8399fa0f
Respect RFC1459 casemapping rules
2018-09-11 08:52:12 +01:00
jesopo
7530bb7cbd
Pass around an IRCPrefix object instead of "nickname!username@hostname", fix a
...
bug in TAGMSG handling that was trying to get a user object from a channel, fix
a bug in ACCOUNT handling that was literally using "nickname" as a user's
nickname, instead of the parsed nickname.
2018-09-10 09:31:24 +01:00
jesopo
462b0f5f0e
Utils.seperate_hostmask has been broken all this time! usernames were coming out
...
as nickname!username
2018-09-04 08:12:09 +01:00
jesopo
41817ce255
Add Utils.bold and Utils.underline
2018-09-01 10:34:55 +01:00
jesopo
ceb73f586c
Only show 2 biggest units in !seen
2018-08-29 15:52:04 +01:00
jesopo
da74357807
Use a zero-width joiner in Utils.prevent_highlight instead of zero width space
2018-08-20 11:03:01 +01:00
jesopo
6709fa1878
Prevent highlighting users in !wordusers and !richest
2018-08-10 13:56:45 +01:00
jesopo
ad53ba0631
Added Utils.to_pretty_time
2018-08-09 12:23:54 +01:00
jesopo
14ffa6716d
Added highlight spam detection/prevention logic to channel_op
2017-12-26 11:50:18 +00:00
Evelyn
31e53e8bc4
Add default timeout
2017-11-03 19:20:23 +00:00
Evelyn
6383a45d3a
Take BS4 parser string from kwargs so you can actually XML. idk even what's the point
2017-06-07 21:36:11 +01:00
Evelyn
6105c8e6e3
Correct spelling of 'background' for color utils
2016-11-07 11:05:50 +00:00
jesopo
5c19b2ea18
changed Utils.get_url to catch SSL errors.
2016-07-05 12:18:47 +01:00
jesopo
64474b261a
added handling URLError to Utils.get_url.
2016-06-24 09:17:54 +01:00
jesopo
5338859e31
added a function to Utils to get the "closest" setting, with channel/user settings being more important than server-wide settings.
2016-05-06 13:36:01 +01:00
Evelyn
190d42fbb5
simpler boolean channel settings
2016-04-10 17:40:58 +01:00
jesopo
810ba3f0bb
added a little piece of code to stop Utils.get_url trying to json decode an empty string.
2016-03-30 19:32:47 +01:00
jesopo
076552c013
added code to Utils.get_url to prevent non-iso-latin-1 urls being attempted. I need to put in a better fix than this at some point.
2016-03-29 21:05:07 +01:00
jesopo
78f1f68a98
made it possible to get http code even when a HTTPError kicks up.
2016-03-29 16:21:27 +01:00
jesopo
f943d63098
first commit.
2016-03-29 12:56:58 +01:00