although I have been working on server-to-server protocol documentation. I need to get around to seeing if I can improve that any...Syzop wrote:Although there are no docs, ...
How to Gline or Kline through services
Moderator: Supporters
Actually, you doApacheAh64D 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.
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:
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: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..
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
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]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-
ApacheAh64D
- Posts: 7
- Joined: Wed Sep 21, 2005 1:16 pm
-
Stealth
- Head of Support
- Posts: 2085
- Joined: Tue Jun 15, 2004 8:50 pm
- Location: Chino Hills, CA, US
- Contact:
To have a service set a G:Line: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:LineAgain, pretty self-explanitory.
Code: Select all
TKL + G user some.host.com Security expire_at set_at :reasonTo have services remove a G:Line
Code: Select all
TKL - G user host SecurityEpoch time, but I tend to use unixtime too.Stealth wrote:(I call it unix time, because I can never remember its proper name)
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
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).
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
)
-ChatSpike IRC Network [http://www.chatspike.net]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]
-Denora Stats [http://denora.nomadirc.net]
-Omerta [http://www.barafranca.com]