Function ircservserv::command::iss_sync [−][src]
pub async fn iss_sync(
message: &Message,
client: &Arc<Client>,
state: &LockedState,
chanserv_tx: UnboundedSender<Message>
) -> Result<()>
Expand description
Responds to !issync
, the whole magic of the bot.
Basically this command will:
- Verify the requestor is logged in
- Ask ChanServ for flags/access list
- Verify requestor is +F in the channel (or bot owner)
- Tell the channel it’s syncing
- op up to look at the ban and invex lists
- Wait for all the lists to come in
- Identify any mismatches and execute them
- De-op