Commits

Jason R. Coombs  committed 75801d7

Fix for missing 'channel' in SQLiteLogger._message

  • Participants
  • Parent commits 8f3a112
  • Tags 1101.9.1

Comments (0)

Files changed (1)

File pmxbot/logging.py

 	def _message(self, channel, nick, msg):
 		INSERT_LOG_SQL = 'INSERT INTO logs (datetime, channel, nick, message) VALUES (?, ?, ?, ?)'
 		now = datetime.datetime.now()
-		self.db.execute(INSERT_LOG_SQL, [now, nick, msg])
+		self.db.execute(INSERT_LOG_SQL, [now, channel, nick, msg])
 		self.db.commit()
 
 	def last_seen(self, nick):