mirror of
https://github.com/moparisthebest/Yaaic
synced 2024-11-22 08:52:18 -05:00
Add an informational message for when the MOTD is ignored.
This commit is contained in:
parent
9dba05eb2d
commit
2759b00084
@ -129,6 +129,7 @@
|
|||||||
<string name="message_connected">Connected to %1$s</string>
|
<string name="message_connected">Connected to %1$s</string>
|
||||||
<string name="message_now_login">Now logging in...</string>
|
<string name="message_now_login">Now logging in...</string>
|
||||||
<string name="message_login_done">Server login done.</string>
|
<string name="message_login_done">Server login done.</string>
|
||||||
|
<string name="message_motd_suppressed">MOTD suppressed. To see it, use the ‘/motd’ command.</string>
|
||||||
<string name="message_deop">%1$s deops %2$s</string>
|
<string name="message_deop">%1$s deops %2$s</string>
|
||||||
<string name="message_devoice">%1$s devoices %2$s</string>
|
<string name="message_devoice">%1$s devoices %2$s</string>
|
||||||
<string name="message_invite_you">%1$s invites you into %2$s</string>
|
<string name="message_invite_you">%1$s invites you into %2$s</string>
|
||||||
|
@ -1098,6 +1098,9 @@ public class IRCConnection extends PircBot
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
if (code == 376 && ignoreMOTD) {
|
if (code == 376 && ignoreMOTD) {
|
||||||
|
Message motdMessage = new Message(service.getString(R.string.message_motd_suppressed));
|
||||||
|
motdMessage.setColor(Message.COLOR_GREY);
|
||||||
|
server.getConversation(ServerInfo.DEFAULT_NAME).addMessage(motdMessage);
|
||||||
ignoreMOTD = false;
|
ignoreMOTD = false;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user