Commit 069d0baa7f
Unsigned
Layout: unified · split
src/lib.rs −5
| @@ -61,8 +61,6 @@ impl Matrix { | |||
| 61 | fn autoconnect(servers: &mut HashMap<String, MatrixServer>) { | 61 | fn autoconnect(servers: &mut HashMap<String, MatrixServer>) { |
| 62 | let weechat = unsafe { Weechat::weechat() }; | 62 | let weechat = unsafe { Weechat::weechat() }; |
| 63 | 63 | ||
| 64 | weechat.print(&format!("Autconnecting servers {:?}", servers.keys())); | ||
| 65 | |||
| 66 | for server in servers.values_mut() { | 64 | for server in servers.values_mut() { |
| 67 | match server.connect() { | 65 | match server.connect() { |
| 68 | Ok(_) => (), | 66 | Ok(_) => (), |
| @@ -75,9 +73,6 @@ impl Matrix { | |||
| 75 | servers: &mut HashMap<String, MatrixServer>, | 73 | servers: &mut HashMap<String, MatrixServer>, |
| 76 | config: &Config, | 74 | config: &Config, |
| 77 | ) { | 75 | ) { |
| 78 | let weechat = unsafe { Weechat::weechat() }; | ||
| 79 | weechat.print("Creating localhost server"); | ||
| 80 | |||
| 81 | let server_name = "localhost"; | 76 | let server_name = "localhost"; |
| 82 | let mut config_borrow = config.borrow_mut(); | 77 | let mut config_borrow = config.borrow_mut(); |
| 83 | let mut section = config_borrow | 78 | let mut section = config_borrow |