I had up my permissions as follows
comment module anonymous logged in
access comments checked checked
administer comments blank blank
post comments checked checked
post comments without approval checked checked
node modulecreate content type checked checked
And the anon_nodecreate settings to Do not allow anonymous node creation and set form error.
This was however preventing anonymous users of commenting - they received the above mentioned 'form error'.
I circumvented that limitation by checking Allow saving node anonymously when user details do not validate. instead, and in the general permissions to disallow anonymous users to create new nodes.
Not exactly intuitive, so when someone looks again at this module, maybe try to make it respect the core comment permissions.
But in any case it works way better there the in inline registration-module, #1552340: IR refuses anonymous comments.
Comments
Comment #1
eiland commentedSo that was posted too quick, because with anonymous users disallowed to create nodes, they can get to the add/node screen.
Now I modified the anon_nodecreate.module on line 111
from
if($newuser_error && $existinguser_error && $donot_allow_anon == '1') {to
if($newuser_error && $existinguser_error && $donot_allow_anon == '1' && arg(1)!="reply") {