How to Gline or Kline through services

The UnrealIRCd team does not officially provide support for any services packages that you may be using or want to use. This forum is provided so the community can help each other with services issues.

Moderator: Supporters

aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

Syzop wrote:Although there are no docs, ...
although I have been working on server-to-server protocol documentation. I need to get around to seeing if I can improve that any...
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

ApacheAh64D wrote:You don't send commands through the console like this as a normal user..
Thank you though, that looks very interesting. I'm gonna look into that stuff.
Actually, you do :). All a client is is a glitzy wrapper around (generally a tcp, although this isn't specified by rfc) a network connection to send and recieve data.

A bot is a 'client' of a sort, an ircd is a client, Services is, technically, a client.. everything is the same.

I can connect a telnet session to an irc network, and identify as a user (or as a server, if I feel like showing off..) with no problems:
Me being a smart alec wrote:
telnet> open irc.chatspike.net 6667
NICK w00t
USERTrying 64.246.60.72...
Connected to irc.chatspike.net.
Escape character is '^]'.
USER w00t * * :m00 is my god
:megumi.chatspike.net NOTICE AUTH :*** Looking up your hostname...
:megumi.chatspike.net NOTICE AUTH :*** Found your hostname
:megumi.chatspike.net 433 * W00t :Nickname is already in use.
NICK w00t2
:megumi.chatspike.net NOTICE w00t2 :*** If you are having problems connecting due to ping timeouts, please type /quote pong 37561E2 or /raw pong 37561E2 now.
PING :37561E2
PONG :37561E2
:megumi.chatspike.net 001 w00t2 :Welcome to the ChatSpike IRC Network w00t2![email protected]
:megumi.chatspike.net 002 w00t2 :Your host is megumi.chatspike.net, running version Unreal3.2.2b
:megumi.chatspike.net 003 w00t2 :This server was created Sat Jan 15 2005 at 18:59:10 EST
:megumi.chatspike.net 004 w00t2 megumi.chatspike.net Unreal3.2.2b iowghraAsORTVSxNCWqBzvdHtGp lvhopsmntikrRcaqOALQbSeKVfMGCuzNT
:megumi.chatspike.net 005 w00t2 CMDS=KNOCK,MAP,DCCALLOW,USERIP SAFELIST HCN MAXCHANNELS=20 CHANLIMIT=#:20 MAXLIST=b:60,e:60 NICKLEN=30 CHANNELLEN=32 TOPICLEN=307 KICKLEN=307 AWAYLEN=307 MAXTARGETS=20 WALLCHOPS :are supported by this server
:megumi.chatspike.net 005 w00t2 WATCH=128 SILENCE=15 MODES=12 CHANTYPES=# PREFIX=(ohv)@%+ CHANMODES=beqa,kfL,l,psmntirRcOAQKVGCuzNSMT NETWORK=ChatSpike CASEMAPPING=ascii EXTBAN=~,cqnr ELIST=MNUCT STATUSMSG=@%+ EXCEPTS :are supported by this server
:megumi.chatspike.net 251 w00t2 :There are 13 users and 1047 invisible on 7 servers

..you get the point..
That's connecting as a user, the other state Unreal (and most ircds NOT ircd 2.11 (was it 11, or 10 that introduced 'services'?)) has is that of a server:

I'm feeling lazy, so I probably won't get it exactly right, but it'd be something like this:

PASS :m00cowsrulemyworld
PROTOCTL NOQUIT TOKENS SJ3
SERVER services-dev.chatspike.net 0 :U-2306-* meow :o

etc..
Last edited by w00t on Thu Sep 22, 2005 11:45 pm, edited 1 time in total.
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
ApacheAh64D
Posts: 7
Joined: Wed Sep 21, 2005 1:16 pm

Post by ApacheAh64D »

I know that...
I never said I don't know

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

Post by Stealth »

To have a service set a G:Line:

Code: Select all

TKL + G user some.host.com Security expire_at set_at :reason
I think that is pretty self-explanitory. The expire_at and set_at values are UNIX Time (I call it unix time, because I can never remember its proper name), and ofcourse they are GMT. To make it permanent, specify expires_at as 0.

To have services remove a G:Line

Code: Select all

TKL - G user host Security
Again, pretty self-explanitory.
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

Stealth wrote:(I call it unix time, because I can never remember its proper name)
Epoch time, but I tend to use unixtime too.
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

Don't forget those that call it ctime (either because they get it from mirc's $ctime function or from C's time() function ;P ). I prefer unixtime though :p .
Syzop
UnrealIRCd head coder
Posts: 2181
Joined: Sat Mar 06, 2004 8:57 pm
Location: .nl
Contact:

Post by Syzop »

Btw aquanight, if you got some nice docs (and they are correct ;p) then I would probably add that if you submit it. We got nothing now (except some protoctl and some other docs, but none general like "how to connect as a server"), so anything is better than nothing :P. I know stskeeps wrote something once, but I only learned about that url like 1 year ago, and it's pretty outdated (it was written for unreal3.1* I think ;p).
w00t
Posts: 1136
Joined: Thu Mar 25, 2004 3:31 am
Location: Nowra, Australia

Post by w00t »

2302 protocol or something, I remember it was pre-TKL (I can't even remember the URL :p) I started doing something similar, but got bored and didn't finish it. I've got it in my head, so I just help someone if they need it :p (except for TKL and crap like that, I need to head for the src to get that :P)
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
aquanight
Official supporter
Posts: 862
Joined: Tue Mar 09, 2004 10:47 pm
Location: Boise, ID

Post by aquanight »

Syzop wrote:Btw aquanight, if you got some nice docs (and they are correct ;p) then I would probably add that if you submit it.
A gzipped HTML should arrive at the address you listed in your forum profile - provided gmail doesn't decide to freak out about an HTML file attachment ;/ .
Locked