proc needoperz { channel } {
putserv "PRIVMSG NickOP@austnet.org :IDENTIFY mypassword"
putserv "PRIVMSG ChanOP :OP $channel $::botnick"
}
then I have this:
channel add #mychan {
chanmode "+nt"
need-op { needoperz "#mychan" }
}
First: The need-op seems to be ignored, checking via .chaninfo (no need-op) althought the bot joins the channel, even after deleting the chan.file and restarting the bot.
Second: When I add:
.chanset #mychan need-op need-operz "#mychan"
It shows up when .chaninfo #mychan and executes correctly, however it
dissapears again some 15 minutes later.
Examination of logs has not shed any light on this problem.
Anyone experiencing the same problem, and found a cure?
PS. .chanset #mychan need-op restart
(to effect a bot restart to gain ops) reflects the same problem.
Cheers,
Johnny
Last edited by scarcorp on Fri Mar 02, 2007 5:03 am, edited 1 time in total.
Save your channel when you add it or change settings with .chanset.
### chansave Saves the channel settings to the file defined by the "chanfile" setting. This file is reloaded during rehash and restarting the bot.
chanset changes get wiped on rehash/reload/restart unless you chansave.
Once a channel is created, the channel add command won't change its settings, use the channel set command instead (.chanset from the console, channel set from a script.)
Thanks for your sugestions, however I did set it via .chanset and whether I save settings via .save doesn't make any difference, the settings are forgotten after about 15mins.
As a matter of interest, I have compiled another bot on another shell, and I get the same error.
Cheers.
Could you verify that there is no problems saving the new settings? (ie, cat:ing the channels-file just after .save:ing the new settings from partyline)
Although you say it's "out of the box", it still smells like getops.tcl or a third-party script/module :/
Could you check that there's no timed scripts (.tcl timers/utimers) or time bindings (.bind time all) active that might be the cause for this behaviour?
You'll probably have to modify your config abit to enable the .tcl command, but that should be explained in the config-file.
I assure you it is "out of the box", I am no newbie to eggdrop
Besides the fact that I have complied new installations of this version on 3 different shells, and my own server, all consistently giving the same results.
Your last sugestion re. any timers has not turned up anything either.
I think I will return to the last version, this is deffinately a bug.