Aug-29-2022, 09:01 PM
(Aug-29-2022, 07:33 PM)deanhystad Wrote: Why do you suddenly need a file? Before you had a list that contained this information. Why can't you still use a list (or a dictionary)?Because i want to use a configuration file that doesn't have to be edited in the file itself since so the software can read the setted channels from its own configuration
Quote:What string are you talking about here?Like i said in the posts above you can set it in the software like:
Quote:The string is like this in the new situation:
limiter_chans.ircnet "#python,#forum"
/set plugins.var.python.limiter.limiter_chans.ircnet #python,#forum
Quote:What command in your program is returning this string? Or are you trying to generate a string like this?
channels = config_get_plugin('limiter_chans.{}'.format(network))Also noticed that in the posts and it doesn't matter if it is weechat or not, I'm only asking how to store the data to a file and how to retrieve that back. Does it matter, the software is weechat?As far as i know it is a pyhon question, nothing more.