Needs review
Project:
Bot
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
23 Mar 2011 at 13:48 UTC
Updated:
31 May 2011 at 16:13 UTC
Jump to comment: Most recent file
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 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 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 commentedCool. Just deals with #2 and #3 above, as per IRC.
Comment #7
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).