Anope Bug Tracker - Anope Stable (1.8.x series)
View Issue Details
0001213Anope Stable (1.8.x series)ChanServpublic2010-12-15 18:472010-12-15 19:49
katsklaw 
Adam 
normalminoralways
resolvedfixed 
x86DebianLenny
 
 
0001213: CS ENFORCE proceeds with WHAT as NULL instead of returning proper syntax
what being a required value. giving an unknown value returns proper syntax notice. ChanServ will enforce NULL if no value for what is specified instead of returning proper syntax.

Anope-1.8.2 (2369) services.irc UnrealIRCd 3.2.x - M (enc_md5) -- build 0000001, compiled Jun 6 2010 01:19:31
type: /cs enforce #Channel

.:10:27:. -> Server: cs enforce #devel
.:10:27:. -ChanServ- Enforced (null)
.:10:27:. -> Server: cs enforce #devel all
.:10:27:. -ChanServ- Syntax: ENFORCE channel [what]
You guys sure ask a lot of questions! ;P

Version: Anope-1.8.5 (3037) services.irc UnrealIRCd 3.2.x - M (enc_md5) -- build 0000001, compiled Dec 15 2010 16:39:25
No tags attached.
Issue History
2010-12-15 18:47katsklawNew Issue
2010-12-15 18:49katsklawNote Added: 0005683
2010-12-15 19:03katsklawNote Added: 0005684
2010-12-15 19:49AdamNote Added: 0005687
2010-12-15 19:49AdamStatusnew => resolved
2010-12-15 19:49AdamResolutionopen => fixed
2010-12-15 19:49AdamAssigned To => Adam

Notes
(0005687)
Adam   
2010-12-15 19:49   
Thanks, fixed in commit 13688c595bd11c3a4a093bc82a7d5f2733640abb.
(0005684)
katsklaw   
2010-12-15 19:03   
ok after looking at the src, what isn't required but if it's not specified, what defaults to SET, in either case it shouldn't return NULL.
(0005683)
katsklaw   
2010-12-15 18:49   
2 different versions given, reproduced on both.