darkfi 3 недель назад
Родитель
Сommit
f712d1b31c
3 измененных файлов с 2 добавлено и 3 удалено
  1. 1 1
      bin/app/script/recv_darkirc_msgs.py
  2. 1 1
      bin/app/src/logger.rs
  3. 0 1
      bin/app/src/plugin/darkirc2.rs

+ 1 - 1
bin/app/script/recv_darkirc_msgs.py

@@ -35,6 +35,6 @@ while True:
     msg = serial.decode_str(cur)
 
     dt = datetime.fromtimestamp(timestamp / 1000.0)
-    print(f"[{dt.strftime('%Y-%m-%d %H:%M:%S')}] #{channel} <{nick}> {msg}")
+    print(f"[{dt.strftime('%Y-%m-%d %H:%M:%S')}] {channel} <{nick}> {msg}")
     print(f"  Message ID: {msg_id}")
     print("-" * 80)

+ 1 - 1
bin/app/src/logger.rs

@@ -56,7 +56,7 @@ static MUTED_TARGETS: &[&'static str] = &[
     "event_graph::protocol",
 ];
 #[cfg(not(target_os = "android"))]
-static ALLOW_TRACE: &[&'static str] = &["ui", "app", "gfx", "plugin", "app"];
+static ALLOW_TRACE: &[&'static str] = &["ui", "app", "gfx", "plugin", "app", "main"];
 
 #[cfg(all(target_os = "android", feature = "enable-filelog"))]
 fn logfile_path() -> PathBuf {

+ 0 - 1
bin/app/src/plugin/darkirc2.rs

@@ -452,7 +452,6 @@ impl DarkIrc2 {
                 w!("Skipping encrypted channel: {channel}");
                 continue
             }
-            channel.remove(0);
 
             // Workaround for the chatview hack. This nick is off limits!
             let mut nick = privmsg.nick;