This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

OperServ Access denied.

Help for those learning Tcl or writing their own scripts.
Post Reply
N
Nadae
Voice
Posts: 5
Joined: Wed Mar 24, 2021 8:30 pm

OperServ Access denied.

Post by Nadae »

Hello,

I want my eggdrop to execute the command in a script / msg operserv logonnews add my message. My eggdrop is ircop, which is confirmed by the fact that its scripts do well for example kills.

So in my script I have:

Code: Select all

putquick "privmsg operserv: logonnews add My message."
But it answers me: [19:10:46] -OperServ (services@services.domainname.org) - Access denied.

However in unrealircd.conf the bot is the netadmin-with-override operclass;

What should I do please?
User avatar
CrazyCat
Revered One
Posts: 1305
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

First, you have a small typo in your command:

Code: Select all

putquick "privmsg operserv :logonnews add My message."
(take care of the placement of the ":")

Second, seems you use anope, the trouble might be with your config it and who can access to the logonnews command. By default, only Services Root can use it. And this is an anope setting, not an ircd one.
N
Nadae
Voice
Posts: 5
Joined: Wed Mar 24, 2021 8:30 pm

Post by Nadae »

Thank you for the answer. I specify that when I directly use logonnews myself it works perfectly.
N
Nadae
Voice
Posts: 5
Joined: Wed Mar 24, 2021 8:30 pm

Post by Nadae »

Thank you a lot. That run correctly now after add this in service.conf from Anope :

Code: Select all

oper
{
	/* The nickname of this services oper */
	name = "MyBot"
	
	/* The opertype this person will have */
	type = "Services Root"
}
We can withdraw a particular news by indicating its number, or all the news, but apparently there is no solution to request the withdrawal of the last one only with eggdrop ?
.
.
.
User avatar
CrazyCat
Revered One
Posts: 1305
Joined: Sun Jan 13, 2002 8:00 pm
Location: France
Contact:

Post by CrazyCat »

No, you can only list all the news and parse the result to get the ones created by eggdrop.
The number of the news is not an ID
Post Reply