Skip to content

Commit

Permalink
Update message.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
casperstorm committed Mar 11, 2024
1 parent 5be6c83 commit 79ca250
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion data/src/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ fn target(message: Encoded, our_nick: &Nick, client: &Client) -> Option<Target>
use proto::command::Numeric::*;

let user = message.user();

match message.0.command {
// Channel
Command::MODE(target, ..) if proto::is_channel(&target) => Some(Target::Channel {
Expand Down Expand Up @@ -172,7 +173,6 @@ fn target(message: Encoded, our_nick: &Nick, client: &Client) -> Option<Target>
}
Command::PRIVMSG(target, text) => {
let is_action = is_action(&text);

let source = |user| {
let user = client.user_from_target(&user, &target);

Expand Down

0 comments on commit 79ca250

Please sign in to comment.