Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'applications/kosmos/bundles/org.eclipse.ecf.presence.bot.kosmos/src/org/eclipse/ecf/internal')
-rw-r--r--applications/kosmos/bundles/org.eclipse.ecf.presence.bot.kosmos/src/org/eclipse/ecf/internal/presence/bot/kosmos/ChatRoomMessageHandler.java21
-rw-r--r--applications/kosmos/bundles/org.eclipse.ecf.presence.bot.kosmos/src/org/eclipse/ecf/internal/presence/bot/kosmos/custom.properties2
2 files changed, 7 insertions, 16 deletions
diff --git a/applications/kosmos/bundles/org.eclipse.ecf.presence.bot.kosmos/src/org/eclipse/ecf/internal/presence/bot/kosmos/ChatRoomMessageHandler.java b/applications/kosmos/bundles/org.eclipse.ecf.presence.bot.kosmos/src/org/eclipse/ecf/internal/presence/bot/kosmos/ChatRoomMessageHandler.java
index 3e64edfef..15cb9f9be 100644
--- a/applications/kosmos/bundles/org.eclipse.ecf.presence.bot.kosmos/src/org/eclipse/ecf/internal/presence/bot/kosmos/ChatRoomMessageHandler.java
+++ b/applications/kosmos/bundles/org.eclipse.ecf.presence.bot.kosmos/src/org/eclipse/ecf/internal/presence/bot/kosmos/ChatRoomMessageHandler.java
@@ -600,33 +600,24 @@ public class ChatRoomMessageHandler implements IChatRoomMessageHandler {
learn(roomID, msg.substring(4).trim());
} else {
sendMessage(
- roomID,
- fromID
- + ": "
- + CustomMessages
- .getString(CustomMessages.No_Operation_Privileges));
+ roomID, NLS.bind(CustomMessages
+ .getString(CustomMessages.No_Operation_Privileges), fromID.getName()));
}
} else if (msg.startsWith("set ") || msg.startsWith("update")) { //$NON-NLS-1$ //$NON-NLS-2$
if (operators.contains(fromID.getName())) {
update(roomID, msg.substring(4).trim());
} else {
sendMessage(
- roomID,
- fromID
- + ": "
- + CustomMessages
- .getString(CustomMessages.No_Operation_Privileges));
+ roomID, NLS.bind(CustomMessages
+ .getString(CustomMessages.No_Operation_Privileges), fromID.getName()));
}
} else if (msg.startsWith("remove ")) { //$NON-NLS-1$
if (operators.contains(fromID.getName())) {
remove(roomID, msg.substring(7).trim());
} else {
sendMessage(
- roomID,
- fromID
- + ": "
- + CustomMessages
- .getString(CustomMessages.No_Operation_Privileges));
+ roomID, NLS.bind(CustomMessages
+ .getString(CustomMessages.No_Operation_Privileges), fromID.getName()));
}
} else if (msg.startsWith("bug")) { //$NON-NLS-1$
msg = msg.substring(3).trim();
diff --git a/applications/kosmos/bundles/org.eclipse.ecf.presence.bot.kosmos/src/org/eclipse/ecf/internal/presence/bot/kosmos/custom.properties b/applications/kosmos/bundles/org.eclipse.ecf.presence.bot.kosmos/src/org/eclipse/ecf/internal/presence/bot/kosmos/custom.properties
index 6bdfb233b..5ce2b9540 100644
--- a/applications/kosmos/bundles/org.eclipse.ecf.presence.bot.kosmos/src/org/eclipse/ecf/internal/presence/bot/kosmos/custom.properties
+++ b/applications/kosmos/bundles/org.eclipse.ecf.presence.bot.kosmos/src/org/eclipse/ecf/internal/presence/bot/kosmos/custom.properties
@@ -10,7 +10,7 @@
# Nick Boldt <codeslave@ca.ibm.com> - bug 206528
################################################################################
-No_Operation_Privileges = Your name is not in my database of trusted users. You cannot tell me what to do.
+No_Operation_Privileges = {0}: Your name is not in my database of trusted users. You cannot tell me what to do.
Learn_Failure = An error has occurred while performing on a change on the keyword "{0}". I need a maintenance scheduled to review the cause of this error. Please contact rcjsuen.
Learn_Reply = The new keyword "{0}" has been stored. In the future, you can ask me about "{0}" and I will respond.
Learn_Conflict = The keyword "{0}" conflicts with a known command. You must use '~set' to replace the existing response, which is currently set to: {1}

Back to the top