egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

OperServ Access denied.

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
Nadae
Voice


Joined: 24 Mar 2021
Posts: 5

PostPosted: Sun Aug 29, 2021 4:00 pm    Post subject: OperServ Access denied. Reply with quote

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:
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?
Back to top
View user's profile Send private message
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Sun Aug 29, 2021 7:03 pm    Post subject: Reply with quote

First, you have a small typo in your command:
Code:
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.
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
Nadae
Voice


Joined: 24 Mar 2021
Posts: 5

PostPosted: Sun Aug 29, 2021 7:23 pm    Post subject: Reply with quote

Thank you for the answer. I specify that when I directly use logonnews myself it works perfectly.
Back to top
View user's profile Send private message
Nadae
Voice


Joined: 24 Mar 2021
Posts: 5

PostPosted: Sun Aug 29, 2021 8:12 pm    Post subject: Reply with quote

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

Code:
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 ?
.
.
.
Back to top
View user's profile Send private message
CrazyCat
Revered One


Joined: 13 Jan 2002
Posts: 1032
Location: France

PostPosted: Wed Sep 01, 2021 6:34 am    Post subject: Reply with quote

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
_________________
https://www.eggdrop.fr - French IRC network
Offer me a coffee - Do not ask me help in PM, we are a community.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber