{"action":"created","issue":{"url":"https://api.github.com/repos/irssi/irssi/issues/246","labels_url":"https://api.github.com/repos/irssi/irssi/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/irssi/irssi/issues/246/comments","events_url":"https://api.github.com/repos/irssi/irssi/issues/246/events","html_url":"https://github.com/irssi/irssi/issues/246","id":75716691,"number":246,"title":"Store password out of config.","user":{"login":"eloyesp","id":173797,"avatar_url":"https://avatars.githubusercontent.com/u/173797?v=3","gravatar_id":"","url":"https://api.github.com/users/eloyesp","html_url":"https://github.com/eloyesp","followers_url":"https://api.github.com/users/eloyesp/followers","following_url":"https://api.github.com/users/eloyesp/following{/other_user}","gists_url":"https://api.github.com/users/eloyesp/gists{/gist_id}","starred_url":"https://api.github.com/users/eloyesp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eloyesp/subscriptions","organizations_url":"https://api.github.com/users/eloyesp/orgs","repos_url":"https://api.github.com/users/eloyesp/repos","events_url":"https://api.github.com/users/eloyesp/events{/privacy}","received_events_url":"https://api.github.com/users/eloyesp/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-12T19:48:06Z","updated_at":"2015-05-12T23:41:30Z","closed_at":null,"body":"I'm trying to publish my irssi config file without compromising my passwords. (very similar to [those][1] [questions][2]). The best solution I thought is to use the `.netrc` file that can be easily read from [perl][4].\r\n\r\nMy first idea was to make a script that listen to the \"server connecting\" signal, and if the password equals 'netrc' then it stop the signal and start a new connection (but with the new password). The issue is that the connection [doesn't wait for the signal][5] to be accepted and do not care what happened with the signal (so I cannot change the password from the script). The [gist for the script][6] I've used to test, the connection pass without any change.\r\n\r\nAs I see, there are to possible implementations. One is to break the `server_real_connect` in two parts: one that just emit the signal and the second that do the actual connection, or make the `signal_emit` function return non 0 if the signal was stopped.\r\n\r\nRegards.\r\n\r\n [1]: http://superuser.com/questions/594554/separate-irssi-services-passwords-from-main-configuration-file\r\n [2]: http://superuser.com/questions/895185/how-to-store-confidential-info-whilst-using-dot-files-framework\r\n [4]: http://perldoc.perl.org/Net/Netrc.html\r\n [5]: https://github.com/irssi/irssi/blob/master/src/core/servers.c#L215\r\n [6]: https://gist.github.com/eloyesp/fb31135b22d44904da2e"},"comment":{"url":"https://api.github.com/repos/irssi/irssi/issues/comments/101460811","html_url":"https://github.com/irssi/irssi/issues/246#issuecomment-101460811","issue_url":"https://api.github.com/repos/irssi/irssi/issues/246","id":101460811,"user":{"login":"dequis","id":94108,"avatar_url":"https://avatars.githubusercontent.com/u/94108?v=3","gravatar_id":"","url":"https://api.github.com/users/dequis","html_url":"https://github.com/dequis","followers_url":"https://api.github.com/users/dequis/followers","following_url":"https://api.github.com/users/dequis/following{/other_user}","gists_url":"https://api.github.com/users/dequis/gists{/gist_id}","starred_url":"https://api.github.com/users/dequis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dequis/subscriptions","organizations_url":"https://api.github.com/users/dequis/orgs","repos_url":"https://api.github.com/users/dequis/repos","events_url":"https://api.github.com/users/dequis/events{/privacy}","received_events_url":"https://api.github.com/users/dequis/received_events","type":"User","site_admin":false},"created_at":"2015-05-12T23:41:30Z","updated_at":"2015-05-12T23:41:30Z","body":"Duplicate of #6?"}}