Browse Source

Cross dev

Nathaniel van Diepen 11 years ago
parent
commit
5491e0cc3b
2 changed files with 16 additions and 2 deletions
  1. 15 0
      app/www/data/plugins/test/script.js
  2. 1 2
      app/www/js/omnomirc.js

+ 15 - 0
app/www/data/plugins/test/script.js

@@ -0,0 +1,15 @@
+hook('message',function(msg,from,room,origin){
+	if(msg =='funny'){
+		$o.event('test','yay');
+		$o.chat.send(origin,room);
+	}
+});
+hook('send',function(msg,room){
+	return msg.toLowerCase()!='the game';
+});
+hook('start',function(){
+	$('body').show();
+});
+hook('stop',function(){
+	$('body').hide();
+});

+ 1 - 2
app/www/js/omnomirc.js

@@ -1222,8 +1222,7 @@
 								},
 								$: window.jQuery,
 								$o: window.OmnomIRC,
-								OmnomIRC: window.OmnomIRC,
-								test: "test"
+								OmnomIRC: window.OmnomIRC
 							};
 							runInSandbox(data,sandbox);
 							runHook('themechange',[v]);