cgo

[Fork] Gopher Client
git clone https://git.jojolepro.com/cgo.git
Log | Files | Refs | README | LICENSE

commit dad2b3decbd922ffae9ce8f19c7f260eac83cf22
parent be1eb37a7fdb2317458cf9d9292b52ef17cb8740
Author: Sebastian Steinhauer <s.steinhauer@yahoo.de>
Date:   Fri, 17 Oct 2014 11:42:03 +0200

Added "p" as selector type. Floodgap uses it for xkcd comics (PNG images).

Diffstat:
Mcgo.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/cgo.c b/cgo.c @@ -277,6 +277,7 @@ void handle_directory_line(char *line) case '9': case 'g': case 'I': + case 'p': case 'h': case 's': add_link(line[0], fields[0], fields[2], fields[3], fields[1]); @@ -300,6 +301,7 @@ int is_valid_directory_entry(const char *line) case '9': case 'g': case 'I': + case 'p': case 'h': case 's': return 1; @@ -496,6 +498,7 @@ int follow_link(int key) break; case 'g': case 'I': + case 'p': view_file(CMD_IMAGE, link->host, link->port, link->selector); break; case 'h':