Skip to content
This repository has been archived by the owner on Jul 27, 2019. It is now read-only.

Commit

Permalink
Better MOTD formatting.
Browse files Browse the repository at this point in the history
Update to pircbotx 2.0.2 (custom version includes motd fix).
  • Loading branch information
cnaude committed Feb 8, 2015
1 parent 7f6be3c commit e14d74c
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
6 changes: 0 additions & 6 deletions dependency-reduced-pom.xml
Expand Up @@ -319,12 +319,6 @@
<version>0.4.0</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.cnaude.purpleirc</groupId>
<artifactId>PurpleIRC-API</artifactId>
<version>1.0-SNAPSHOT</version>
<scope>compile</scope>
</dependency>
</dependencies>
<distributionManagement>
<repository>
Expand Down
10 changes: 7 additions & 3 deletions pom.xml
Expand Up @@ -229,11 +229,10 @@

<!-- PircBotX -->
<dependency>
<groupId>org.pircbotx</groupId>
<groupId>com.cnaude.pircbotx</groupId>
<artifactId>pircbotx</artifactId>
<version>2.0.1</version>
<version>2.0.2</version>
</dependency>


<!-- CleverNotch -->
<dependency>
Expand Down Expand Up @@ -352,6 +351,7 @@
<minimizeJar>true</minimizeJar>
<artifactSet>
<includes>
<include>com.cnaude.pircbotx</include>
<include>org.pircbotx</include>
<include>org.slf4j</include>
<include>org.apache.commons</include>
Expand All @@ -360,6 +360,10 @@
<filters>
</filters>
<relocations>
<relocation>
<pattern>com.cnaude.pircbotx</pattern>
<shadedPattern>com.cnaude.pircbotx</shadedPattern>
</relocation>
<relocation>
<pattern>org.pircbotx</pattern>
<shadedPattern>org.pircbotx</shadedPattern>
Expand Down
Expand Up @@ -47,7 +47,11 @@ public MotdListener(PurpleIRC plugin, PurpleBot ircBot) {
@Override
public void onMotd(MotdEvent event) {
if (ircBot.showMOTD) {
plugin.logInfo(event.getMotd());
plugin.logInfo("- " + ircBot.botServer + " - Message of the Day -");
for (String s : event.getMotd().split("\n")) {
plugin.logInfo("- " + s);
}
plugin.logInfo("- End of MOTD command.");
}
}
}

0 comments on commit e14d74c

Please sign in to comment.