Suggestions for +listreg command

Bug #1133229 reported by Herman
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ADCH++
New
Undecided
Unassigned

Bug Description

Suggestions for +listreg command

 - Fix the bug if you search with a "[" without ending "]" like "+listreg [ab"
 - Fix so it trim spaces before, after the "nick"
 - Fix so the name and password is on the same row i.e remove the "\n\t"

Revision history for this message
Herman (herman-dc) wrote :

Probably to fix the "[" bug.
 --if v.level <= user.level and (#param == 0 or (v.nick and string.match(string.lower(v.nick), param, 1 ))) then
   if v.level <= user.level and (#param == 0 or (v.nick and string.find(string.lower(v.nick), param, 1,true ))) then

A way to fix spaces
   param = string.match(param, "^%s*(.-)%s*$")

Revision history for this message
eMTee (realprogger) wrote :

Please read http://adchpp.sourceforge.net/user_guide/expert_guide.html#_patches_and_contributions about how to suggest fixes to the code. Thank you.

Revision history for this message
Herman (herman-dc) wrote :

Maybe a better format. Thanks eMTee for a link :)

My Lua skills is not top notch but think it's ok.
Changes look at first post.

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.