diff options
| author | Jokler <jokler.contact@gmail.com> | 2017-10-17 04:24:32 +0200 |
|---|---|---|
| committer | Jokler <jokler.contact@gmail.com> | 2017-10-17 04:24:32 +0200 |
| commit | 8b64bdc7a96a1b5f4549493fb30042e1a46349a6 (patch) | |
| tree | dfd628a649de036417cfc83300e2118a26731c29 | |
| parent | 292805ff70b6b39adfaeb0ffafed8626169b7bee (diff) | |
| download | frippy-8b64bdc7a96a1b5f4549493fb30042e1a46349a6.tar.gz frippy-8b64bdc7a96a1b5f4549493fb30042e1a46349a6.zip | |
Check if it was actually us who joined for the info message
| -rw-r--r-- | src/lib.rs | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -141,7 +141,9 @@ fn process_msg(server: &IrcServer, -> Result<(), IrcError> { if let Command::JOIN(ref channel, _, _) = message.command { - info!("Joined {}", channel); + if message.source_nickname().unwrap() == server.current_nickname() { + info!("Joined {}", channel); + } } let message = Arc::new(message); |
