Skip to content

Commit d1909ad

Browse files
committed
Merge pull request #56 from Vogel612/master
minor usability changes
2 parents 95b45ff + 9095910 commit d1909ad

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

pom.xml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,15 @@
3535
</descriptorRefs>
3636
</configuration>
3737
</plugin>
38+
<plugin>
39+
<groupId>org.codehaus.mojo</groupId>
40+
<artifactId>exec-maven-plugin</artifactId>
41+
<version>1.3.2</version>
42+
<configuration>
43+
<mainClass>com.gmail.inverseconduit.Main</mainClass>
44+
<cleanupDaemonThreads>false</cleanupDaemonThreads>
45+
</configuration>
46+
</plugin>
3847
</plugins>
3948
</build>
4049
<dependencies>

src/main/java/com/gmail/inverseconduit/chat/StackExchangeChat.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,11 @@ private boolean sendMessage(String restRootUrl, String fkey, String message) {
230230
}
231231

232232
/**
233-
* {@inheritDoc}
233+
* Queries the 5 latest messages for all chatrooms and enqueues them to
234+
* the subscribed {@link ChatWorker Workers}, respecting the already handled
235+
* timestamps as maintained internally.
236+
*
237+
* @see ChatInterface#queryMessages()
234238
*/
235239
@Override
236240
public void broadcast(final String message) {

src/main/java/com/gmail/inverseconduit/scripts/ScriptRunner.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ public String evaluateGroovy(ChatMessage msg, String commandText) {
5555
}
5656
LOGGER.info("Result:" + result);
5757
return result == null
58-
? String.format(":%d [tag:groovy]: no result", msg.getMessageId())
59-
: String.format(":%d [tag:groovy]: %s", msg.getMessageId(), result.toString());
58+
? "[tag:groovy]: no result"
59+
: String.format("[tag:groovy]: %s", result.toString());
6060
}
6161

6262
public void evaluateAndCache(String commandText) {

0 commit comments

Comments
 (0)