Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
When someone uses the "|" convention, can this throw off the bequeathing (and... dequeathing) of karma? I'm sure it's not a huge problem when people are using obvious statuses like "nickname|afk" or "nickname|away", but my organization is considering using the vertical bar convention to add our company's name afterwards. I don't know about the other guys, but I'd still like any karma to be linked with my d.o username.
If I submitted a patch for the regex, might it be accepted?
Comment | File | Size | Author |
---|---|---|---|
#6 | 1102742-6-ignore_away_status-D6.patch | 1.15 KB | patcon |
#3 | 1102742-4-allow_botname_colon_and_ignore_nick_status-D6.patch | 1.28 KB | patcon |
Comments
Comment #1
Morbus IffYes, | would throw off the karma - "user" is different from "user|afk" or "user|company".
The patch would have to hit two areas - "user|afk++", but also "karma user|afk?".
Comment #2
patcon CreditAttribution: patcon commentedOK, and I just realized the the regex doesn't recognize "BOTNAME: USER++" with the colon (which many IRC clients add automatically). Is it ok if I add a change for that in the same patch? Oh, and the regex for giving karma is caps-sensitive, but it's not for requesting karma scores. I'm guessing that's unintentional.
Comment #3
patcon CreditAttribution: patcon commentedAlright, so it's only 3 lines, but it changes these:
Comment #4
Morbus IffRegarding #2, incorrect. $addressed is created by bot_name_regexp() and contains : as well as a number of other possibilities.
Comment #5
Morbus IffAlso regarding #2: not sure what you mean about case sensitivity. Any case should be acceptable for any request, as it's all strtolower'd before it hits the db (i.e. "MorbusIff++" is acceptable and is stored in the database as "morbusiff", such that any future request for "karma morbusiff? karma MorbusIff? karma MORBUSIFF?" will all return the same value. This is intentional.) If you're specifically talking about "/i", then this is also intentional - "KARMA morbusiff?" and "KarMa morbusiff?" should be quite OK.
Comment #6
patcon CreditAttribution: patcon commentedCool. Just deals with #2 and #3 above, as per IRC.
Comment #7
mikebell_ CreditAttribution: mikebell_ commentedMy IRC nick is currently digita| (long story) all my karma is currently logged against this, would this then mean if someone did "digita|++" then "digita" would be credited?
It's not a major issue but I thought I'd bring it up.
Comment #8
Morbus IffIn the current patch, it looks like, yes, your karma would be screwed (due to .* in the regexp).