From: Jer Noble Date: Tue, 20 Mar 2012 18:10:32 +0000 (-0700) Subject: Added FIXMEs to HiBack.js. X-Git-Url: http://id.pley.net/colloquy_plugins.git/commitdiff_plain?ds=inline Added FIXMEs to HiBack.js. --- diff --git a/HiBack.js b/HiBack.js index f7b71fd..fb54961 100644 --- a/HiBack.js +++ b/HiBack.js @@ -4,6 +4,10 @@ function processIncomingMessage( message, view ) { return; // Search for 'hi !' 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());