X-Git-Url: http://105106.c2e0p.group/colloquy_plugins.git/blobdiff_plain/46018892cb4dc428b0f110fc51e356e21479ffc0..HEAD:/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());