aboutsummaryrefslogtreecommitdiff
path: root/src/utils/irc.py
Commit message (Collapse)AuthorAgeFilesLines
* change utils.irc.strip_font() to remove tokens, no regexGravatar jesopo2020-01-221-7/+5
|
* fix hostmask_match_many typehintGravatar jesopo2020-01-221-1/+1
|
* add an optional mask pattern arg to !clearGravatar jesopo2020-01-221-2/+2
|
* allow requesting utils.irc.color() to not add terminating codeGravatar jesopo2020-01-211-2/+7
|
* rework permissions module to precompile hostmasksGravatar jesopo2019-11-301-7/+16
|
* use ANSI_RESET in utils.irc.parse_format, not all the different resetsGravatar jesopo2019-11-281-9/+1
|
* consecutive HASH_STOP chars at start shouldn't count as a stopGravatar jesopo2019-11-191-1/+4
|
* HASH_STOP should still be respected if last characterGravatar jesopo2019-11-191-1/+1
|
* switch some utils.irc functions to use f-stringsGravatar jesopo2019-11-181-4/+3
|
* truncate nickname hash operations to 64bitGravatar jesopo2019-11-181-1/+1
|
* implement weechat-style djb2 colour hashingGravatar jesopo2019-11-181-3/+11
|
* add typehinting for foreground/backgroundGravatar jesopo2019-11-131-2/+2
|
* only set color_finished=True when is_background, otherwise next char sets itGravatar jesopo2019-11-131-13/+12
|
* hash_colorize code should first be looked up in HASH_COLORSGravatar jesopo2019-11-111-2/+2
|
* .lower() strings when hash-colorizing themGravatar jesopo2019-11-111-1/+1
|
* don't use hash() for hashed colorising as it's not stable through restartsGravatar jesopo2019-11-111-1/+1
|
* add utils.irc.hash_colorize() to color a string by the string's hashGravatar jesopo2019-11-111-0/+5
|
* don't stop parsing colors at commaGravatar jesopo2019-11-041-1/+1
|
* 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 argsGravatar jesopo2019-02-121-1/+1
| | | | (' :' with nothing after it) (utils.irc)
* 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 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)
* 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-161-7/+3
|
* '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-121-1/+2
|
* 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-301-1/+9
|
* 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
|
* 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