Diff

mod_adhoc_groups/mod_adhoc_groups.lua @ 2870:d8325dfb6a13

mod_adhoc_groups: Fix typos [codespell]
author Kim Alvefur <zash@zash.se>
date Sun, 04 Feb 2018 15:57:52 +0100
parent 2848:232da6b1d2c1
child 4030:0d7293c37e1a
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