Set channel active when joining
This commit is contained in:
parent
6209393cd0
commit
ef4c554820
1 changed files with 5 additions and 3 deletions
|
@ -97,8 +97,10 @@ impl Cri {
|
|||
self
|
||||
.input_tx
|
||||
.borrow()
|
||||
.send(IrcCommand::JOIN(channel, tokens.next().map(str::to_string), None).into())
|
||||
.unwrap()
|
||||
.send(IrcCommand::JOIN(channel.clone(), tokens.next().map(str::to_string), None).into())
|
||||
.unwrap();
|
||||
|
||||
self.message_log.set_active(Some(channel));
|
||||
},
|
||||
"/part" => {
|
||||
let channel = tokens.next().map(str::to_string).or_else(|| self.message_log.active_channel.clone());
|
||||
|
@ -123,7 +125,7 @@ impl Cri {
|
|||
)
|
||||
.into(),
|
||||
)
|
||||
.unwrap()
|
||||
.unwrap();
|
||||
}
|
||||
"/query" => self
|
||||
.message_log
|
||||
|
|
Loading…
Reference in a new issue