-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
74 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,11 +21,11 @@ use crate::{ | |
connection::InitiatedConnection, | ||
messages::{ | ||
Broadcast, ChannelFetchTopic, ChannelJoin, ChannelList, ChannelMemberList, | ||
FetchClientByNick, MessageKind, PrivateMessage, ServerDisconnect, ServerFetchMotd, | ||
ServerListUsers, UserConnected, UserNickChange, UserNickChangeInternal, | ||
FetchClientByNick, MessageKind, PrivateMessage, ServerAdminInfo, ServerDisconnect, | ||
ServerFetchMotd, ServerListUsers, UserConnected, UserNickChange, UserNickChangeInternal, | ||
}, | ||
persistence::Persistence, | ||
server::response::{ListUsers, Motd}, | ||
server::response::{AdminInfo, ListUsers, Motd}, | ||
SERVER_NAME, | ||
}; | ||
|
||
|
@@ -276,6 +276,18 @@ impl Handler<ServerListUsers> for Server { | |
} | ||
} | ||
|
||
impl Handler<ServerAdminInfo> for Server { | ||
type Result = MessageResult<ServerAdminInfo>; | ||
|
||
fn handle(&mut self, _msg: ServerAdminInfo, _ctx: &mut Self::Context) -> Self::Result { | ||
MessageResult(AdminInfo { | ||
line1: "Name: example name".to_string(), | ||
line2: "Nickname: examplenick".to_string(), | ||
email: "Email: [email protected]".to_string(), | ||
}) | ||
} | ||
} | ||
|
||
impl Handler<PrivateMessage> for Server { | ||
type Result = (); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters