X-Git-Url: http://id.pley.net/colloquy_plugins.git/blobdiff_plain/46018892cb4dc428b0f110fc51e356e21479ffc0..c88fff3cbb37a7bf4ac13a4fa3be410fe660be60:/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());