projects
/
KiwiIRC.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
584080a
)
More relevant example in server/plugininterface.js
author
Darren
<darren@darrenwhitlen.com>
Mon, 30 Jun 2014 22:28:04 +0000
(23:28 +0100)
committer
Darren
<darren@darrenwhitlen.com>
Mon, 30 Jun 2014 22:28:04 +0000
(23:28 +0100)
server/plugininterface.js
patch
|
blob
|
blame
|
history
diff --git
a/server/plugininterface.js
b/server/plugininterface.js
index 16d3d96e9ef42160869876d6065c89d0e0c45368..070d05d381a12bc6f6250fe1277850dc50548f10 100644
(file)
--- a/
server/plugininterface.js
+++ b/
server/plugininterface.js
@@
-222,7
+222,7
@@
var modules = new PluginInterface();
// A plugin
-modules.on('
client:command
', function (event, data) {
+modules.on('
irc message
', function (event, data) {
//event.wait = true;
setTimeout(event.callback, 2000);
});
@@
-236,8
+236,7
@@
var data = {
command: '/dothis'
};
-
-modules.emit('client:command', data).done(function () {
+modules.emit('irc message', data).done(function () {
console.log('Your command is: ' + data.command);
});
*/
\ No newline at end of file