aboutsummaryrefslogtreecommitdiff
path: root/src/utils
Commit message (Collapse)AuthorAgeFilesLines
* Add a way to force success and force failure of a command permission checkGravatar jesopo2019-01-281-0/+4
| | | | (commands.py)
* output of `len()` needs to have a `-1` on it when matching it against indexesGravatar jesopo2019-01-161-1/+1
| | | | within the given string (src/utils/irc.py)
* Don't ignore a color code when it's right at the end of a messageGravatar jesopo2019-01-161-12/+7
| | | | (src/utils/irc.py)
* 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 foregroundGravatar jesopo2019-01-161-1/+2
| | | | AND background formatting (src.utils.irc)
* 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.Gravatar jesopo2019-01-131-3/+10
| | | | strip \x08 (in case hexchat users paste it) (print_activity.py, src.utils.irc)
* don't consume 3 digits for a colour code when the first char is 0 and the secondGravatar jesopo2019-01-131-3/+5
| | | | two chars make up a valid colour code (src.utils.irc)
* 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 fromGravatar jesopo2018-12-111-10/+16
| | | | utils.http.request
* Add typing hints to CaseInsensitiveDict, fix it's __setitem__ signature, callGravatar jesopo2018-12-081-5/+5
| | | | .items() on `other` in ctor
* Switch to using a case insensitive dictionary for headers instead of doingGravatar jesopo2018-12-081-0/+8
| | | | .title() on each header key
* re-add check in utils.irc.parse_line that prevents us having an empty string asGravatar jesopo2018-12-031-1/+4
| | | | an arg when there's no non-arbitrary args
* 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
|
* Nope, just combine previous color-char and current color-char and see if it'sGravatar jesopo2018-11-261-1/+1
| | | | less than or equal to 15 (utils.irc)
* Don't reject 6-9 (inclusive) when it's prepended by 0 (src/utils/irc.py)Gravatar jesopo2018-11-261-1/+1
|
* If a color code is double-digit, make sure it's 0-15, not just 0-20Gravatar jesopo2018-11-261-5/+6
|
* also support zero-padded color codesGravatar jesopo2018-11-251-1/+1
|
* Don't eat numbers after color formatting if they'd end up making the color codeGravatar jesopo2018-11-251-6/+13
| | | | `20` or more
* `prefix` should be a Optional[IRCHostmask], we shouldn't use `Optional[]` as aGravatar jesopo2018-11-201-3/+3
| | | | compile-time object (utils.irc)
* Minor code styling change in urils.ircGravatar jesopo2018-11-171-2/+2
|
* Typo in utils.__init__, 'number' -> 'number_str'Gravatar jesopo2018-11-161-1/+2
|
* We do indeed need to see "\x03" even when there's no foreground/backgroundGravatar jesopo2018-11-141-2/+1
| | | | (color reset)
* Don't eat commas when there's no background color or when a comma directlyGravatar jesopo2018-11-141-2/+7
| | | | follows a background color
* Missed a 'message' -> 'ctcp_message'Gravatar jesopo2018-11-141-1/+1
|
* Typo in utils.irc, 'message' -> 'ctcp_message'Gravatar jesopo2018-11-141-2/+2
|
* Stop supporting using ansi bold for brightening colors, support ansi backgroundGravatar jesopo2018-11-142-24/+31
| | | | colors
* Better parsing of CTCP messages, support raw.send.privmsg/raw.send.notice inGravatar jesopo2018-11-141-0/+14
| | | | modules/line_handler.py
* Typo in src/utils/irc.py, 'resplace' -> 'replace'Gravatar jesopo2018-11-141-1/+1
|
* You can join color and bold in to one \033 ansi sequenceGravatar jesopo2018-11-141-2/+3
|
* Support irc format full reset (\x0F) as ansi reset (\033[0m)Gravatar jesopo2018-11-141-1/+7
|
* Use extended ANSI colors to avoid using bold to make colors lighterGravatar jesopo2018-11-141-8/+8
|
* 'ANSI_RESET' -> 'ANSI_BOLD_RESET' typo, 'ansi_bold' -> 'color_bold'Gravatar jesopo2018-11-142-21/+24
| | | | | clarification, fix issue in color tokenizing that caused bolds to be put in the wrong place
* Add type annotions to irc->ansi color functionsGravatar jesopo2018-11-141-4/+4
|
* Only reset ansi bolding when both color-bold and bold are falseGravatar jesopo2018-11-141-1/+1
|
* Bold reset is 22, not 21Gravatar jesopo2018-11-131-1/+1
|
* Fix bolding/unbolding code in utils.ircGravatar jesopo2018-11-131-2/+3
|
* Apparently '39' is 'font reset' for ansi colorsGravatar jesopo2018-11-131-1/+1
|
* Visual tweak; align "="s in utils.constsGravatar jesopo2018-11-131-25/+25
|
* Add code to tokenize and ansi-replace IRC colors; use this inGravatar jesopo2018-11-131-1/+74
| | | | modules/print_activity.py
* Better constifying of COLORsGravatar jesopo2018-11-131-17/+31
|
* Better constifying of color/font charsGravatar jesopo2018-11-132-20/+47
|
* I was accidentally removing two characters from the start of :nick!user@hostGravatar jesopo2018-11-131-1/+1
|
* That shouldn't be thereGravatar jesopo2018-11-131-1/+0
|