Skip to content

Commit

Permalink
Gopher protocol dictates that server sends a ".\r\n" at end of transm…
Browse files Browse the repository at this point in the history
…ission.
  • Loading branch information
icculus committed Sep 10, 2017
1 parent 1908b07 commit 65c4829
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 4 deletions.
1 change: 1 addition & 0 deletions IcculusGopher_daemon.pl
Expand Up @@ -181,6 +181,7 @@ sub gopher_mainline {
syslog("info", "Failed to execute '$exe': $!");
}
send_gopher_menu('3', $no_report_string);
print(".\r\n");
return 1;
}

Expand Down
2 changes: 2 additions & 0 deletions gopherspace/fortune
Expand Up @@ -34,3 +34,5 @@ foreach (@lines) {
send_gopher_info('');
send_gopher_info('');
print(".\r\n");
8 changes: 6 additions & 2 deletions gopherspace/twitter
Expand Up @@ -53,9 +53,11 @@ my %commands = (
help => sub {
send_gopher_menu('i', 'This is a Twitter/Gopher bridge!');
send_gopher_menu('i');
send_gopher_menu('i', 'You can look up specific users with the twitter/user/$USERNAME selector...');
send_gopher_menu('i', 'You can look up specific users with the');
send_gopher_menu('i', ' twitter/user/$USERNAME selector...');
send_gopher_menu('1', 'Like what @icculus has tweeted recently.', 'twitter/user/icculus', $host, $port);
send_gopher_menu('i', '...or check out a specific tweet with the twitter/tweet/$ID selector...');
send_gopher_menu('i', '...or check out a specific tweet with the');
send_gopher_menu('i', ' twitter/tweet/$ID selector...');
send_gopher_menu('1', 'Like the one that inspired these shenanigans.', 'twitter/tweet/905832029555744768', $host, $port);
},

Expand Down Expand Up @@ -241,4 +243,6 @@ if (not defined $commands{$cmd}) {

$commands{$cmd}->($params);
send_patreon_plug();
print(".\r\n");


7 changes: 5 additions & 2 deletions gopherspace/version
@@ -1,4 +1,7 @@
#!/bin/sh
# Version of IcculusGopher. Change this if you are forking the code.
VERSION='0.0.1'
echo -n "i$VERSION\t\terror.host\t1\r\n"
VERSION='0.0.2'
echo -n "iThis is IcculusGopher $VERSION\t\terror.host\t1\r\n"
echo -n "ihttps://hg.icculus.org/icculus/icculusgopher/\t\terror.host\t1\r\n"
echo -n ".\r\n"

0 comments on commit 65c4829

Please sign in to comment.