]> arthur.barton.de Git - ngircd-alex.git/commit
Save client IP address text for "WebIRC" users
authorAlexander Barton <alex@barton.de>
Mon, 26 Aug 2013 20:54:00 +0000 (22:54 +0200)
committerAlexander Barton <alex@barton.de>
Mon, 26 Aug 2013 20:54:00 +0000 (22:54 +0200)
commit1dc93286a0d5b80259604b4f25021fcc5a730b5b
tree2323c8a29f2d19b1fcb233b8871f3128451bcd76
parent3b65f4e38d1ab019513f16b70581ae10574006e8
Save client IP address text for "WebIRC" users

This patch introduces a new field in the CLIENT structure, "ipa_text",
which points to an optional textual representation of the client IP
address (or NULL) which can be used to store the "real" IP address
information of a client using the "WEBIRC" protocol.

Without this patch, ngIRCd ignored the <ip-address> paramater ...

In addition, the functions Client_SetIPAText() and Client_IPAText()
have been introduced to set and get the textual representation of the
client IP address.

Client_IPAText() can be used even when no "IP address text" has been
set before, it then returns the real IP address of the connection.

Closes bug #159.
src/ngircd/client.c
src/ngircd/client.h
src/ngircd/irc-info.c
src/ngircd/irc-login.c