aboutsummaryrefslogtreecommitdiff
path: root/src/utils/irc.py
Commit message (Expand)AuthorAgeFilesLines
* utils.irc doesn't need to know about the whole of utilsGravatar jesopo2019-10-291-31/+31
* move src/utils/irc/__init__.py to src/utils/irc.pyGravatar jesopo2019-10-281-0/+274
* Shift formatting protocol data to it's own file: utils.irc.protocolGravatar jesopo2019-02-181-302/+0
* 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
* 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
* Hold on to tags and type for BATCHesGravatar jesopo2019-02-111-0/+7
* rename, 'IRCLine' -> 'IRCParsedLine' (utils.irc)Gravatar jesopo2019-02-101-3/+3
* 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
* 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-161-7/+3
* '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-121-1/+2
* 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-301-1/+9
* Nope, just combine previous color-char and current color-char and see if it's•••less than or equal to 15 (utils.irc) Gravatar jesopo2018-11-261-1/+1
* 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 code•••`20` or more Gravatar jesopo2018-11-251-6/+13
* `prefix` should be a Optional[IRCHostmask], we shouldn't use `Optional[]` as a•••compile-time object (utils.irc) Gravatar jesopo2018-11-201-3/+3
* Minor code styling change in urils.ircGravatar jesopo2018-11-171-2/+2
* We do indeed need to see "\x03" even when there's no foreground/background•••(color reset) Gravatar jesopo2018-11-141-2/+1
* Don't eat commas when there's no background color or when a comma directly•••follows a background color Gravatar jesopo2018-11-141-2/+7
* 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 background•••colors Gravatar jesopo2018-11-141-23/+27
* Better parsing of CTCP messages, support raw.send.privmsg/raw.send.notice in•••modules/line_handler.py Gravatar jesopo2018-11-141-0/+14
* 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
* 'ANSI_RESET' -> 'ANSI_BOLD_RESET' typo, 'ansi_bold' -> 'color_bold'•••clarification, fix issue in color tokenizing that caused bolds to be put in the wrong place Gravatar jesopo2018-11-141-17/+20
* 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
* Fix bolding/unbolding code in utils.ircGravatar jesopo2018-11-131-2/+3
* Add code to tokenize and ansi-replace IRC colors; use this in•••modules/print_activity.py Gravatar jesopo2018-11-131-1/+74
* Better constifying of color/font charsGravatar jesopo2018-11-131-20/+15
* I was accidentally removing two characters from the start of :nick!user@hostGravatar jesopo2018-11-131-1/+1
* Remove unneeded constGravatar jesopo2018-11-121-1/+0
* We don't need utils.irc.remove_colon anymore!Gravatar jesopo2018-11-121-7/+1
* Support passing unrestricted args between connectionsGravatar jesopo2018-11-081-1/+3
* Technically, we only need to unescape non-json message-tag *values*Gravatar jesopo2018-11-081-4/+2