[Help] Howto create IRC services

These are old archives. They are kept for historic purposes only.
Post Reply
Sebas
Posts: 6
Joined: Thu Aug 06, 2009 10:08 am
Location: Netherlands

[Help] Howto create IRC services

Post by Sebas »

Hello,

I wan't to create irc services like Anope/NeoStats opensourced.
I'm not here too search people, but i'm looking for the UnrealIRCd SDK/exported functions.
So, how can i connect with my services to the irc server.

Thanks. :wink:
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: [Help] Howto create IRC services

Post by Stealth »

You need to read the server protocol, and connect your services as a server. Services do not deal with any "exported functions".

Server protocol documentation: http://cvs.unrealircd.com/cgi/viewcvs.c ... v=1.1.2.13
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: [Help] Howto create IRC services

Post by Jobe »

Your IP: Image
Your Country: Image
Stealth
Head of Support
Posts: 2085
Joined: Tue Jun 15, 2004 8:50 pm
Location: Chino Hills, CA, US
Contact:

Re: [Help] Howto create IRC services

Post by Stealth »

I just put the first one Google gave me :P
Sebas
Posts: 6
Joined: Thu Aug 06, 2009 10:08 am
Location: Netherlands

Re: [Help] Howto create IRC services

Post by Sebas »

Thank you for the usefull link :)
Are there examples how to connect to the link block ?
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: [Help] Howto create IRC services

Post by Jobe »

Sebas wrote:Thank you for the usefull link :)
Are there examples how to connect to the link block ?
Best way to find an example of that is to use an existing services package and run in debug mode watching all the server to server traffic. That can be very useful for examples in use.
Last edited by Jobe on Sun Sep 06, 2009 2:17 pm, edited 1 time in total.
Your IP: Image
Your Country: Image
Sebas
Posts: 6
Joined: Thu Aug 06, 2009 10:08 am
Location: Netherlands

Re: [Help] Howto create IRC services

Post by Sebas »

Ok, the development is gonna be good.
The services connects now and does things.

But how can i get the user modes?
If i wan't mine, i type: /mode Sebas
This doesn't work(services raw):
:Defender SVSMODE Sebas

I wan't to grab the modes from me, to check if he is a administrator.
Jobe
Official supporter
Posts: 1180
Joined: Wed May 03, 2006 7:09 pm
Location: United Kingdom

Re: [Help] Howto create IRC services

Post by Jobe »

Sebas wrote:Ok, the development is gonna be good.
The services connects now and does things.

But how can i get the user modes?
If i wan't mine, i type: /mode Sebas
This doesn't work(services raw):
:Defender SVSMODE Sebas

I wan't to grab the modes from me, to check if he is a administrator.
Your server will have to A) make a note of the user modes sent to it for a user at burst and B) will have to keep track of mode changes itself

Then internally it will have the modes stored in it's own memory.
Your IP: Image
Your Country: Image
Post Reply