 					else
 						callback?()
 			when 'wipequote'
-				db.checkPermissionByMessage message, 'joinMessages.wipequote', (hasPermission) ->
+				db.checkPermissionByMessage message, 'quotes.wipequote', (hasPermission) ->
 					if hasPermission
 						[ username, quote... ] = parameters.split /,/
 						username = username.trim()

					else
						api.replyTo message, __("Your quote has been deleted."), yes, callback
			when 'forcequote'
				db.checkPermissionByMessage message, 'joinMessages.forcequote', (hasPermission) ->
					if hasPermission
						[ username, quote... ] = parameters.split /,/
						username = username.trim()


onLoad = (callback) ->
	db.serialize ->
		db.run "CREATE TABLE IF NOT EXISTS quotes (
			userID INT(10),
			value MEDIUMTEXT,
			PRIMARY KEY(userID)
		);"
		
		getQuery = db.prepare "SELECT value FROM quotes WHERE userID = ?"
		setQuery = db.prepare "INSERT OR REPLACE INTO quotes (userID, value) VALUES (?, ?)"
		delQuery = db.prepare "DELETE FROM quotes WHERE userID = ?"
		
handleMessage = (message, callback) ->
	# Don't match our own messages
