aboutsummaryrefslogtreecommitdiff
path: root/Utils.py
Commit message (Collapse)AuthorAgeFilesLines
* Move most code in root directory to src/Gravatar jesopo2018-09-241-287/+0
|
* Change Utils.color to take a string to wrap in colorGravatar jesopo2018-09-211-3/+3
|
* Support hooking functions in modules with @Utils.hookGravatar jesopo2018-09-191-0/+10
|
* Implement __str__ and __repr__ on Utils.IRCHostmaskGravatar jesopo2018-09-171-0/+5
|
* Utils.irc_lower was returning an unchanged string because .replace on a stringGravatar jesopo2018-09-171-1/+1
| | | | returns a new string
* Oops, this isn't C#.Gravatar jesopo2018-09-131-1/+1
|
* Support "nickname@hostname" hostmask, even though it's almost certain it'llGravatar jesopo2018-09-131-1/+3
| | | | never be seen in the wild.
* Add missing argument to Utils._multi_replace calls in irc_lowerGravatar jesopo2018-09-121-6/+7
|
* .lower() is also not valid for ascii case mappingGravatar jesopo2018-09-121-7/+3
|
* .lower() is not valid as "Á" is not the same as "á" within RFC1459 casemappingGravatar jesopo2018-09-121-10/+12
|
* Support 'strict-rfc1459' case mappingGravatar jesopo2018-09-121-0/+8
|
* Fix copypaste fail in Utils that meant we had no RFC1459_LOWERGravatar jesopo2018-09-111-1/+1
|
* Respect RFC1459 casemapping rulesGravatar jesopo2018-09-111-0/+19
|
* Pass around an IRCPrefix object instead of "nickname!username@hostname", fix aGravatar jesopo2018-09-101-1/+7
| | | | | | 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.
* Utils.seperate_hostmask has been broken all this time! usernames were coming outGravatar jesopo2018-09-041-1/+1
| | | | as nickname!username
* Add Utils.bold and Utils.underlineGravatar jesopo2018-09-011-0/+6
|
* Only show 2 biggest units in !seenGravatar jesopo2018-08-291-6/+17
|
* Use a zero-width joiner in Utils.prevent_highlight instead of zero width spaceGravatar jesopo2018-08-201-1/+1
|
* Prevent highlighting users in !wordusers and !richestGravatar jesopo2018-08-101-0/+3
|
* Added Utils.to_pretty_timeGravatar jesopo2018-08-091-0/+19
|
* Added highlight spam detection/prevention logic to channel_opGravatar jesopo2017-12-261-0/+4
|
* Add default timeoutGravatar Evelyn2017-11-031-1/+1
|
* Take BS4 parser string from kwargs so you can actually XML. idk even what's ↵Gravatar Evelyn2017-06-071-2/+2
| | | | the point
* Correct spelling of 'background' for color utilsGravatar Evelyn2016-11-071-1/+1
|
* changed Utils.get_url to catch SSL errors.Gravatar jesopo2016-07-051-7/+10
|
* added handling URLError to Utils.get_url.Gravatar jesopo2016-06-241-0/+6
|
* added a function to Utils to get the "closest" setting, with channel/user ↵Gravatar jesopo2016-05-061-0/+10
| | | | settings being more important than server-wide settings.
* simpler boolean channel settingsGravatar Evelyn2016-04-101-0/+9
|
* added a little piece of code to stop Utils.get_url trying to json decode an ↵Gravatar jesopo2016-03-301-1/+1
| | | | empty string.
* added code to Utils.get_url to prevent non-iso-latin-1 urls being attempted. ↵Gravatar jesopo2016-03-291-0/+6
| | | | I need to put in a better fix than this at some point.
* made it possible to get http code even when a HTTPError kicks up.Gravatar jesopo2016-03-291-3/+6
|
* first commit.Gravatar jesopo2016-03-291-0/+158