Anope IRC Services

Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: [1] 2 3 ... 10
 1 
 on: Today at 12:19:42 AM 
Started by mikkel - Last post by KnownSyntax

We are already convert the code to anope v2

Do you have this uploaded to GitHub or somewhere? The modules page for this only shows support for Anope 1.7.x still (C vs. C++ module).

 2 
 on: September 21, 2023, 12:29:50 PM 
Started by CrazyCat - Last post by CrazyCat
Well, I've a weird bug.
In my module, I do:
Code: [Select]
   void OnJoinChannel(User *u, Channel *c) anope_override
   {
      if (!c->ci)
         return;
      query = "INSERT INTO `" + prefix + "chanlog` (chan, nick, type) VALUES (@chan@, @nick@, 'JOIN');";
      query.SetValue("chan", c->name);
      query.SetValue("nick", GetDisplay(u));
      this->RunQuery(query);
   }
   
   void OnPartChannel(User *u, Channel *c, Anope::string &channel, Anope::string &msg) anope_override
   {
      if (!c->ci)
         return;
      query = "INSERT INTO `" + prefix + "chanlog` (chan, nick, type, content) VALUES (@chan@, @nick@, 'PART', @content@);";
      query.SetValue("chan", c->name);
      query.SetValue("nick", GetDisplay(u));
      query.SetValue("content", msg);
      this->RunQuery(query);
   }
The OnJoinChannel works well but the OnPartChannel does nothing, as if it was not called.
No compilation error, no sql error, sounds weird.

I also did a function to log pub and action which works well... Can't understand what the trouble is

 3 
 on: September 20, 2023, 11:00:54 PM 
Started by CrazyCat - Last post by CrazyCat
https://github.com/anope/anope/blob/2.0/include/modules.h#L482-L489

I was searching the wrong way :)
Thx Sadie !

 4 
 on: September 20, 2023, 08:39:55 PM 
Started by CrazyCat - Last post by Sadie
https://github.com/anope/anope/blob/2.0/include/modules.h#L482-L489

 5 
 on: September 20, 2023, 05:08:07 PM 
Started by CrazyCat - Last post by CrazyCat
Hi there,
I'm working on a little module and want to hook when a user joins a channel, but looking at channels.cpp, there is no equivalent to OnLeaveChannel (for quit and part).
Do I search in wrong way or is this really missing ?

 6 
 on: July 17, 2023, 04:05:35 PM 
Started by Jed - Last post by Jed
info mynick shows:

Quote
-NickServ- XYZ is ...
-
-NickServ- XYZ is a Services Operator of type Services Administrator.
-
-NickServ-           Account: XYZ
-
-NickServ-       Online from: myip
-
-NickServ-       Online from: myip
-
-NickServ-        Registered: Jun 13 18:47:51 2023 Mitteleuropäische Sommerzeit (33 days, 22 hours, 12 minutes ago)
-
-NickServ- Last quit message: Connection closed
-
-NickServ-     Email address: mymail
-
-NickServ-           Options: Private, Protection, Security, Auto-op

oper list shows:

acces denied
respectively.

 7 
 on: July 16, 2023, 09:16:26 AM 
Started by Jed - Last post by Zemra
show output of /ns info yournick and /os oper list

 8 
 on: July 06, 2023, 09:20:28 AM 
Started by Jed - Last post by Jed
Hi

recently set up my IRC with unralircd and the new Anope branch.

So far everthing works fine according chanserv and nickserv.

However i'm unable to oper up my user as I wanted to add a Bot

Always says Access denied no matter what command I give to os

As far as I understand everything is alright so maybe its only a short thing, but I'm unable to find it.

Would be glad if anyone could have a look.

unrealircd.conf:
Quote
oper XYZ {
   class opers;
   mask *;
   password "mypass";
   /* Oper permissions are defined in an 'operclass' block.
    * See https://www.unrealircd.org/docs/Operclass_block
    * UnrealIRCd ships with a number of default blocks, see
    * the article for a full list. We choose 'netadmin' here.
    */
   operclass XYZ;
   swhois "is a Administrator";
   vhost irc.my-irc.de;
}
 and at the end:
/* Admin Server Block */
operclass XYZ {
   permissions {
      chat;
      channel { operonly; see; override { flood; } }
      client;
      immune;
      self { getbaddcc; opermodes; set; }
      server { opermotd; info; close; module; dns; rehash;
               remote; description; addmotd;
               addomotd; tsctl { view; } }
      route;
      kill;
      server-ban;
   }
}

operclass XYZ-override {
   parent admin;
   permissions {
      channel { operonly; see; override; }
      self { getbaddcc; opermodes; set; unkickablemode; }
   }
}

rest is pretty standard.

anope, services.conf:
Quote
oper
{
   /* The nickname of this services oper */
   name = "XYZ"

   /* The opertype this person will have */
   type = "Services Administrator"

   /* If set, the user must be an oper on the IRCd to gain their Services
    * oper privileges.
    */
   require_oper = yes

   /* An optional password. If defined, the user must login using "/OPERSERV LOGIN" first */
   #password = "mypass"

   /* An optional SSL fingerprint. If defined, it's required to be able to use this opertype. */
   #certfp = "ed3383b3f7d74e89433ddaa4a6e5b2d7"

   /* An optional list of user@host masks. If defined the user must be connected from one of them */
   #host = "*@*.anope.org ident@*"

   /* An optional vHost to set on users who identify for this oper block.
    * This will override HostServ vHosts, and may not be available on all IRCds
    */
   #vhost = "oper.mynet"
}


Yes, XYZ is a registered nick.

Could provide full .conf files if needed.

Any help would be appreciated ;)
Thnk you.


 9 
 on: May 16, 2023, 10:31:28 PM 
Started by The Myth Lives - Last post by CrazyCat
Last message disregarded :D

Nice to know it works well

 10 
 on: May 16, 2023, 06:54:48 PM 
Started by The Myth Lives - Last post by The Myth Lives
Disregard last message.

All works as expected.

Pages: [1] 2 3 ... 10