diff options
| -rw-r--r-- | src/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index fc373d6..b87ee8d 100644 --- a/src/main.rs +++ b/src/main.rs @@ -142,6 +142,7 @@ fn handle_input(text: &str, app: &mut AppState, client: &mut Client) -> bool { client.part(&app.channel, None); } app.messages.clear(); + app.members.clear(); client.join(args.trim()); app.channel = args.trim().to_string(); } @@ -153,6 +154,7 @@ fn handle_input(text: &str, app: &mut AppState, client: &mut Client) -> bool { }; client.part(channel, None); app.channel = "".to_string(); + app.members.clear(); } "NICK" => { client.nick(args.trim()); |
