1
0
mirror of https://github.com/moparisthebest/Yaaic synced 2024-11-25 18:32:15 -05:00

Add an informational message for when the MOTD is ignored.

This commit is contained in:
Darren Salt 2011-06-16 22:10:50 +01:00 committed by Sebastian Kaspari
parent 9dba05eb2d
commit 2759b00084
2 changed files with 4 additions and 0 deletions

View File

@ -129,6 +129,7 @@
<string name="message_connected">Connected to %1$s</string>
<string name="message_now_login">Now logging in...</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_devoice">%1$s devoices %2$s</string>
<string name="message_invite_you">%1$s invites you into %2$s</string>

View File

@ -1098,6 +1098,9 @@ public class IRCConnection extends PircBot
return;
}
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;
return;
}