Page 1 of 1

about CONFIG ITEM DEFINE

Posted: Tue Jan 05, 2016 9:08 am
by taobataoma
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!

Re: about CONFIG ITEM DEFINE

Posted: Mon Jan 11, 2016 8:05 am
by Syzop
2. Yes, see Dev: Module Storage.

Re: about CONFIG ITEM DEFINE

Posted: Mon Jan 11, 2016 8:20 am
by taobataoma
ok,thx.

Re: about CONFIG ITEM DEFINE

Posted: Mon Jan 11, 2016 8:25 am
by Syzop
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 ;).

Re: about CONFIG ITEM DEFINE

Posted: Mon Jan 11, 2016 10:57 am
by taobataoma
i see, thx