summaryrefslogtreecommitdiff
path: root/src/user_int.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/user_int.rs')
-rw-r--r--src/user_int.rs12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/user_int.rs b/src/user_int.rs
index 4b6f4c8..71349e9 100644
--- a/src/user_int.rs
+++ b/src/user_int.rs
@@ -127,15 +127,27 @@ impl Session {
},
"BUFFER" => {
self.chan = m.params.get(0).unwrap_or(&String::new()).clone();
+ if let Some(ref ui) = self.ui {
+ let mut ui = ui.lock().unwrap();
+ ui.chan(&self.chan);
+ }
None
},
"JOIN" => {
self.chan = m.params.get(0).unwrap_or(&String::new()).clone();
+ if let Some(ref ui) = self.ui {
+ let mut ui = ui.lock().unwrap();
+ ui.chan(&self.chan);
+ }
Some(m)
},
"PART" => {
m.params.push(self.chan.clone());
self.chan = String::new();
+ if let Some(ref ui) = self.ui {
+ let mut ui = ui.lock().unwrap();
+ ui.chan(&self.chan);
+ }
Some(m)
},
"QUOTE" => {