about CONFIG ITEM DEFINE

For the old 4.x series

Moderators: Gottem, Supporters

Post Reply
taobataoma
Posts: 14
Joined: Mon Dec 21, 2015 6:43 am

about CONFIG ITEM DEFINE

Post by taobataoma » Tue Jan 05, 2016 9:08 am

hi,all:

i can write a moudle, and config some setting item in the .conf file,configtest,configposttest,configrun is work fine,but i have two new questions,

1, if i load a config item value in module A, how to define this variable let it can be used in module B?
2, can i add some new attribute in aChannel stuct? like as TOPIC & TOPIC_NICK?
thx!

Syzop
UnrealIRCd head coder
Posts: 1927
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: about CONFIG ITEM DEFINE

Post by Syzop » Mon Jan 11, 2016 8:05 am

2. Yes, see Dev: Module Storage.

taobataoma
Posts: 14
Joined: Mon Dec 21, 2015 6:43 am

Re: about CONFIG ITEM DEFINE

Post by taobataoma » Mon Jan 11, 2016 8:20 am

ok,thx.

Syzop
UnrealIRCd head coder
Posts: 1927
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Re: about CONFIG ITEM DEFINE

Post by Syzop » Mon Jan 11, 2016 8:25 am

And as for 1... can't think of it right now. There used to be some crazy "DEP" handling. Better to think of something else ;).

taobataoma
Posts: 14
Joined: Mon Dec 21, 2015 6:43 am

Re: about CONFIG ITEM DEFINE

Post by taobataoma » Mon Jan 11, 2016 10:57 am

i see, thx

Post Reply