# HG changeset patch # User Matti Hamalainen # Date 1403407516 -10800 # Node ID 6273c4ea6e51a5fded935bdbe89a74de8b088051 # Parent 43eee625021a4b5a2ad5d48337b89ead4f9ff22e Improve help. diff -r 43eee625021a -r 6273c4ea6e51 main.c --- a/main.c Sun Jun 22 06:19:45 2014 +0300 +++ b/main.c Sun Jun 22 06:25:16 2014 +0300 @@ -34,6 +34,7 @@ #define SET_PROFILE_PREFIX "http://www.newbienudes.com/profile/%s/" #define SET_NICK_SEPARATOR ':' +#define SET_PROXY_PORT 1080 #define SET_MAX_HISTORY (64) // Command history length #define SET_KEEPALIVE (15*60) // Ping/keepalive period in seconds @@ -57,7 +58,7 @@ /* Options */ int optPort = 8005, - optProxyPort = 1080, + optProxyPort = SET_PROXY_PORT, optProxyType = TH_PROXY_NONE, optProxyAuthType = TH_PROXY_AUTH_NONE, optProxyAddrType = TH_PROXY_ADDR_DOMAIN; @@ -142,11 +143,14 @@ "These can be set with the -P option as follows:\n" "\n" " -P ://[[:passwd]@][:]\n" + " -P socks4://localhost:9000\n" + " -P socks5://foobar:pass@localhost\n" "\n" "Type can be socks4, socks4a or socks5. Only socks5\n" - "supports user/pass authentication.\n" + "supports user/pass authentication. Default port is %d.\n" "\n" - "Supported rooms (for option '-r'):\n"); + "Supported rooms (for option '-r'):\n", + SET_PROXY_PORT); for (i = 0; i < nn_room_data_n; i++) { @@ -155,6 +159,8 @@ nn_room_data[i].desc, nn_room_data[i].port); } + + printf("\n"); }