From d63a661b153cc2a9b3216503d33d054ac0c633db Mon Sep 17 00:00:00 2001
From: mcmlxxix <>
Date: Tue, 18 May 2010 15:11:43 +0000
Subject: [PATCH] added 'DEBUG' command. (caution: spam)

---
 exec/ircbots/admin/admin_commands.js | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

diff --git a/exec/ircbots/admin/admin_commands.js b/exec/ircbots/admin/admin_commands.js
index 1e14ff6d1b..2c254955d5 100644
--- a/exec/ircbots/admin/admin_commands.js
+++ b/exec/ircbots/admin/admin_commands.js
@@ -577,4 +577,13 @@ this.Bot_Commands["FORCE"].command = function (target,onick,ouh,srv,lvl,cmd) {
 		return;
 	}
 	srv.check_bot_command(target,onick,srv.users[onick.toUpperCase()].uh,cmd.join(" "));
-}
\ No newline at end of file
+}
+
+this.Bot_Commands["DEBUG"] = new Bot_Command(90,true,true);
+this.Bot_Commands["DEBUG"].command = function (target,onick,ouh,srv,lvl,cmd) {
+	cmd.shift();
+	var data=eval(cmd.join(" "));
+	var str=debug_trace(data,1).split("\r\n");
+	while(str.length) srv.o(target,str.shift());
+	return;
+}
-- 
GitLab