aboutsummaryrefslogtreecommitdiff
path: root/src/utils
Commit message (Expand)AuthorAgeFilesLines
* draft/message-tags-0.3 (JSON tags) was rejectedGravatar jesopo2019-02-201-10/+6
* Don't pass `None` around as tag default, fix some missing return type argsGravatar jesopo2019-02-192-9/+12
* typo, 'utls' -> 'utils' (utils.irc)Gravatar jesopo2019-02-191-1/+1
* Add `.message(` and `.notice(` to IRCSendBatchGravatar jesopo2019-02-191-1/+7
* Default IRCParsedLine.tags to empty dict, not `None`Gravatar jesopo2019-02-191-2/+2
* contextualise JOIN key check, otherwise it doesn't send channel_nameGravatar jesopo2019-02-191-1/+2
* copy paste fail, batch end should be "-" not "+"Gravatar jesopo2019-02-191-1/+1
* Add batch_start and batch_end to utils.irc.protocolGravatar jesopo2019-02-181-0/+7
* Default `tags` to null for utils.irc.protocol's `message` and `notice`Gravatar jesopo2019-02-181-2/+2
* utils.irc.protocol.join()'s `keys` param should be typing.OptionalGravatar jesopo2019-02-181-1/+1
* Add src/utils/irc/__init__.py that should have been added some commits agoGravatar jesopo2019-02-181-0/+335
* Don't try to use `keys` if we try to join a channel without any keysGravatar jesopo2019-02-181-1/+1
* Shift formatting protocol data to it's own file: utils.irc.protocolGravatar jesopo2019-02-182-302/+81
* Add missing :Gravatar jesopo2019-02-181-1/+1
* don't pass around `has_arbitrary` - we don't need it.Gravatar jesopo2019-02-181-11/+10
* Put a helper function in utils to do iso8601 formatting. change IRCServer's•••last-read setting to use it. Gravatar jesopo2019-02-172-3/+7
* Fix 'Optional[str]!=str' type hinting issue in utils.irc line parsingGravatar jesopo2019-02-131-1/+1
* We were just checking if `arbitrary` was falsey, thus losing empty trailing args•••(' :' with nothing after it) (utils.irc) Gravatar jesopo2019-02-121-1/+1
* Also strip \x01 off the start of CTCP commands, if it's there (utils.irc)Gravatar jesopo2019-02-121-0/+2
* Only put a ":" on trailing args when it's requiredGravatar jesopo2019-02-121-0/+6
* Change arg types of constant_time_compare to typing.AnyStr (utils.security)Gravatar jesopo2019-02-121-3/+1
* Move constant-time compare function to utils.securityGravatar jesopo2019-02-121-1/+6
* Put an strf format for ISO8601 in utilsGravatar jesopo2019-02-121-0/+2
* Hold on to tags and type for BATCHesGravatar jesopo2019-02-111-0/+7
* Return truncted data from encode_truncate and hold it in IRCLine.LineGravatar jesopo2019-02-101-3/+6
* add `utils.truncate_encode`, to encode and truncate a string while respecting...Gravatar jesopo2019-02-101-0/+10
* rename, 'IRCLine' -> 'IRCParsedLine' (utils.irc)Gravatar jesopo2019-02-101-3/+3
* Abstract ssl socket wrapping away so we can reuse itGravatar jesopo2019-02-102-1/+24
* Return "0s" from utils.to_pretty_time when given 0 secondsGravatar jesopo2019-02-071-0/+3
* If a server has a hostname that's not an IP, use it as SNI server nameGravatar jesopo2019-02-061-1/+8
* Add a way to force success and force failure of a command permission check•••(commands.py) Gravatar jesopo2019-01-281-0/+4
* output of `len()` needs to have a `-1` on it when matching it against indexes•••within the given string (src/utils/irc.py) Gravatar jesopo2019-01-161-1/+1
* Don't ignore a color code when it's right at the end of a message•••(src/utils/irc.py) Gravatar jesopo2019-01-161-12/+7
* Add src/utils/_consts_256_color.py that should have been added 2 commits agoGravatar jesopo2019-01-161-0/+85
* Fix regression that caused only foreground to be parsed if there's foreground•••AND background formatting (src.utils.irc) Gravatar jesopo2019-01-161-1/+2
* Support IRC colors 16 through 98Gravatar jesopo2019-01-162-11/+22
* 'to_ansi_colors(' -> 'parse_format(' as it's become a lot more than just colors.•••strip \x08 (in case hexchat users paste it) (print_activity.py, src.utils.irc) Gravatar jesopo2019-01-131-3/+10
* don't consume 3 digits for a colour code when the first char is 0 and the second•••two chars make up a valid colour code (src.utils.irc) Gravatar jesopo2019-01-131-3/+5
* Typo, '=' -> '==' (utils.irc)Gravatar jesopo2018-12-121-1/+1
* Support '99' as a 'transparent' irc color codeGravatar jesopo2018-12-122-17/+19
* Typo in utils.http.request, 'response_heders' -> 'response_headers'Gravatar jesopo2018-12-111-1/+1
* Pass a `dict` to utils.CaseInsensitiveDict, not a MutableMappingGravatar jesopo2018-12-111-1/+1
* Add missing `utils` import in utils.httpGravatar jesopo2018-12-111-0/+1
* 'utils.http.get_url' -> 'utils.http.request', return a Response object from•••utils.http.request Gravatar jesopo2018-12-111-10/+16
* Add typing hints to CaseInsensitiveDict, fix it's __setitem__ signature, call•••.items() on `other` in ctor Gravatar jesopo2018-12-081-5/+5
* Switch to using a case insensitive dictionary for headers instead of doing•••.title() on each header key Gravatar jesopo2018-12-081-0/+8
* re-add check in utils.irc.parse_line that prevents us having an empty string as•••an arg when there's no non-arbitrary args Gravatar jesopo2018-12-031-1/+4
* A couple of tweaks to clarify some type hintsGravatar jesopo2018-12-021-4/+2
* 'uderline' -> 'underline' typo in utils.ircGravatar jesopo2018-11-301-1/+1
* Support ANSI underlineGravatar jesopo2018-11-302-5/+15