Anope IRC Services

Anope Support => 1.8.x/1.7.x Support (Read Only) => Topic started by: mEh on November 24, 2006, 11:10:58 AM

Title: 1.7.17 - autoop
Post by: mEh on November 24, 2006, 11:10:58 AM
Hey,

there seems to be a bug with...

/ns set autoop on
/ns set autoop off
/ns saset <Nickname> autoop on
/ns saset <Nickname> autoop off

Everytime i set one of this options i received one of the following messages...

-NickServ- Services will now autoop you in channels.
-NickServ- Services will now autoop <Nickname> in channels.

but autoop still won't work. Even the setting is not written to the database and...

/ns info <Nickname> all

didn't contain any autoop option.

But if i define...

NSDefAutoop

in the services.conf file everything works great?!

:/
Title:
Post by: Jobe on November 24, 2006, 11:27:13 AM
Quote
Originally posted by mEh
but autoop still won't work. Even the setting is not written to the database and...

/ns info <Nickname> all

didn't contain any autoop option.


Firstly the settings dont get written to the database live, secondly there is a bug where AutoOp even if set isn't displayed in /ns info.
Title:
Post by: mEh on November 24, 2006, 12:13:35 PM
hi,

i know the database isn't live ...

it seems anope just sets the flag wrong. if i set autoop to on in irc, the NI_AUTOOP flag isn't set in db. But by turning off autoop anope set the NI_AUTOOP flag in db.

does it suppose to be? ...
Title:
Post by: katsklaw on November 24, 2006, 03:04:41 PM
What jobe means by it's not live is that Services writes it data to cache first, once UpdateTimeout is reached THEN it writes to the db files and optionally to mysql. So if you are checking NI_AUTOOP before UpdaeTimeout, then you will not see the flag changes.

Secondly, you need to enable NSModeOnID on the services.conf for autoop to work properly.

So in short, add NSModeOnID to your services.conf file, do an /os reload and all should be well. :)
Title:
Post by: Dave Robson on November 24, 2006, 06:17:00 PM
Quote
Originally posted by mEh
hi,

i know the database isn't live ...

it seems anope just sets the flag wrong. if i set autoop to on in irc, the NI_AUTOOP flag isn't set in db. But by turning off autoop anope set the NI_AUTOOP flag in db.

does it suppose to be? ...


That's intentional - as it is a new flag, and we want existing nick names to have autoop on, the lack of the flag implies normal existing bahaviour.  When someone sets autoop off (the new behaviour) we set the flag.  so in short, yes it appears the wrong way around :)
Title:
Post by: Jobe on November 25, 2006, 12:18:48 PM
So in theory it would have been better naming the flag NI_AUTOOPOFF so its obvious that its presence means autoop is off not on as has been assumed.