Browse Source

Stragling formats.

Douglas William Thrift 13 years ago
parent
commit
554c5cea14
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/net/douglasthrift/bigscreenbot/BigScreenBot.java

+ 4 - 4
src/net/douglasthrift/bigscreenbot/BigScreenBot.java

@@ -137,7 +137,7 @@ public class BigScreenBot extends Bot
         setAutoNickChange(true);
         setFinger("Big Screen Bot");
         setMessageDelay(0);
-        setVersion("Big Screen Bot (" + System.getProperty("os.name") + ")");
+        setVersion(String.format("Big Screen Bot (%1$s)", System.getProperty("os.name")));
 
         if (settings.getBooleanProperty("ssl", false))
         {
@@ -637,21 +637,21 @@ public class BigScreenBot extends Bot
         {
             if (command == null)
             {
-                sendMessage(channel, sender, "unknown command (\"" + argument + "\"); try \"help\"");
+                sendMessage(channel, sender, String.format("unknown command (\"%1$s\"); try \"help\"", argument));
 
                 return;
             }
 
             if (!admin && command.isAdmin())
             {
-                sendMessage(channel, sender, "unauthorized command (\"" + argument + "\")");
+                sendMessage(channel, sender, String.format("unauthorized command (\"%1$s\")", argument));
 
                 return;
             }
 
             if (!command.isPrivate())
             {
-                sendMessage(channel, sender, "inappropriate command (\"" + argument + "\")");
+                sendMessage(channel, sender, String.format("inappropriate command (\"%1$s\")", argument));
 
                 return;
             }