Skip to content

Commit

Permalink
Fixing a problem with the android version. Also forgot to bump to ver…
Browse files Browse the repository at this point in the history
…sion 0.1.4
  • Loading branch information
sonicrules1234 committed Jul 27, 2021
1 parent 45a1760 commit ec97092
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,12 @@ async fn main() {
let password = p.password.as_str().to_string();
let channels = p.channels.to_vec();
//onandroid = true;
let mut sbot = SonicbotData::new(p.host, p.port, p.nick, p.ssl, p.ident, p.realname, p.ownernick, p.ownerhost, p.trigger, p.hostlabel, wholeversion, datadirbuf, onandroid, tx.clone());
//let mut sonicb = sbot.as_mut();
if onandroid {
use linewrapper::LineWrapper;
let mut linew = LineWrapper::new();
thread::spawn(move || {
let mut sbot = SonicbotData::new(p.host, p.port, p.nick, p.ssl, p.ident, p.realname, p.ownernick, p.ownerhost, p.trigger, p.hostlabel, wholeversion, datadirbuf, onandroid, tx.clone());
sbot.start(password, channels);
});
loop {
Expand All @@ -79,8 +79,6 @@ async fn main() {
linew.showlines();
next_frame().await;
}
} else {
sbot.start(p.password, p.channels);
}
// $crate::main();
}
Expand Down Expand Up @@ -120,4 +118,4 @@ fn main() {
//let mut sonicb = sbot.as_mut();
sbot.start(p.password, p.channels);
// $crate::main();
}
}

0 comments on commit ec97092

Please sign in to comment.