Changeset

2870:d8325dfb6a13

mod_adhoc_groups: Fix typos [codespell]
author Kim Alvefur <zash@zash.se>
date Sun, 04 Feb 2018 15:57:52 +0100
parents 2869:77498ea07795
children 2871:c3317f61f3f9
files mod_adhoc_groups/mod_adhoc_groups.lua
diffstat 1 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mod_adhoc_groups/mod_adhoc_groups.lua	Sun Feb 04 15:55:07 2018 +0100
+++ b/mod_adhoc_groups/mod_adhoc_groups.lua	Sun Feb 04 15:57:52 2018 +0100
@@ -91,14 +91,14 @@
 				local group, err = groups:get(fields.group);
 				if group then
 					if err then
-						return false, "An error occured on the server. Please try again later.";
+						return false, "An error occurred on the server. Please try again later.";
 					else
 						return false, "That group already exists";
 					end
 				end
 
 				if not groups:set(fields.group, { [user] = true }) then
-					return false, "An error occured while creating the group";
+					return false, "An error occurred while creating the group";
 				end
 
 				return true, ("The %s group has been created"):format(fields.group);
@@ -126,7 +126,7 @@
 				local group, err = groups:get(fields.group);
 				if not group then
 					if err then
-						return false, "An error occured on the server. Please try again later.";
+						return false, "An error occurred on the server. Please try again later.";
 					else
 						return false, "No such group";
 					end
@@ -136,7 +136,7 @@
 				end
 
 				if not memberships:set(fields.group, user, true) then
-					return false, "An error occured while adding you to the group";
+					return false, "An error occurred while adding you to the group";
 				end
 
 				for member in pairs(group) do