]> 105106.c2e0p.group Git - colloquy_plugins.git/commitdiff
Added FIXMEs to HiBack.js. master
authorJer Noble <[email protected]>
Tue, 20 Mar 2012 18:10:32 +0000 (11:10 -0700)
committerJer Noble <[email protected]>
Tue, 20 Mar 2012 18:10:32 +0000 (11:10 -0700)
HiBack.js

index f7b71fd7cfd64e0cccde7d95c45fb2f6d3427ad4..fb54961ceb859f50746d20fe779ba8511c60fbf2 100644 (file)
--- a/HiBack.js
+++ b/HiBack.js
@@ -4,6 +4,10 @@ function processIncomingMessage( message, view ) {
         return;
 
     // Search for 'hi <nick>!' anywhere in the message.
+    // FIXME: perhaps we should only match at the beginning of a string.
+    // FIXME: search a list of keywords like "hi [everyone|all|y'all]!".
+    // FIXME: deal with greetings which do not include an exclamation point.
+    // FIXME: retain a list of recent "hi's".
     var searchString = 'hi ' + view.connection().nickname() + '!';
     if (message.bodyAsPlainText().indexOf('hi ' + view.connection().nickname() + '!') != -1 ) {
         var msg = new JVMutableChatMessage('hi ' + message.senderNickname() + '!', view.connection().localUser());