From 9085607a7674760ca3355e6a525b94697d980563 Mon Sep 17 00:00:00 2001
From: mcmlxxix <>
Date: Fri, 8 Jun 2012 14:43:46 +0000
Subject: [PATCH] auto-op bug fix by rfrederick

---
 exec/load/ircbot_commands.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/exec/load/ircbot_commands.js b/exec/load/ircbot_commands.js
index 4dc666292e..215d4357a3 100644
--- a/exec/load/ircbot_commands.js
+++ b/exec/load/ircbot_commands.js
@@ -567,7 +567,7 @@ Server_Commands["JOIN"]= function (srv,cmd,onick,ouh) {
 	if (lvl >= 50) {
 		var usr = new User(system.matchuser(onick));
 		if (lvl >= 60)
-			srv.writeout("MODE " + cmd[1] + " +o " + onick);
+			srv.writeout("MODE " + cmd[0] + " +o " + onick);
 		if (usr.number > 0) {
 			if (usr.comment)
 				srv.o(cmd[0],"[" + onick + "] " + usr.comment);
-- 
GitLab