aboutsummaryrefslogtreecommitdiffstats
path: root/mumd/src/state.rs
diff options
context:
space:
mode:
authorGustav Sörnäs <gustav@sornas.net>2021-03-30 11:27:10 +0200
committerGustav Sörnäs <gustav@sornas.net>2021-03-30 15:25:56 +0200
commitd8c269f66a4a5a17155bec5e2cb5ad97f3ba00fd (patch)
treed456500252f4c94db8f33775242dffb2335b8e96 /mumd/src/state.rs
parent0362df3a4a5d91cb2b8e530d44de327da7a18765 (diff)
downloadmum-d8c269f66a4a5a17155bec5e2cb5ad97f3ba00fd.tar.gz
rename notify -> notifications
Notify is already taken, see https://lib.rs/crates/notify.
Diffstat (limited to 'mumd/src/state.rs')
-rw-r--r--mumd/src/state.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/mumd/src/state.rs b/mumd/src/state.rs
index 858441a..9202e9f 100644
--- a/mumd/src/state.rs
+++ b/mumd/src/state.rs
@@ -6,7 +6,7 @@ use crate::audio::{Audio, NotificationEvents};
use crate::error::StateError;
use crate::network::{ConnectionInfo, VoiceStreamType};
use crate::network::tcp::{TcpEvent, TcpEventData};
-use crate::notify;
+use crate::notifications;
use crate::state::server::Server;
use log::*;
@@ -463,7 +463,7 @@ impl State {
== self.get_users_channel(self.server().unwrap().session_id().unwrap())
{
if let Some(channel) = self.server().unwrap().channels().get(&channel_id) {
- notify::send(format!(
+ notifications::send(format!(
"{} connected and joined {}",
&msg.get_name(),
channel.name()
@@ -516,7 +516,7 @@ impl State {
self.get_users_channel(self.server().unwrap().session_id().unwrap());
if from_channel == this_channel || to_channel == this_channel {
if let Some(channel) = self.server().unwrap().channels().get(&to_channel) {
- notify::send(format!(
+ notifications::send(format!(
"{} moved to channel {}",
user.name(),
channel.name()
@@ -545,7 +545,7 @@ impl State {
s += if deaf { " deafened" } else { " undeafened" };
}
s += " themselves";
- notify::send(s);
+ notifications::send(s);
}
}
}
@@ -561,7 +561,7 @@ impl State {
if this_channel == other_channel {
self.audio.play_effect(NotificationEvents::UserDisconnected);
if let Some(user) = self.server().unwrap().users().get(&msg.get_session()) {
- notify::send(format!("{} disconnected", &user.name()));
+ notifications::send(format!("{} disconnected", &user.name()));
}
}