diff --git a/src/Bot/Commands/Rpg/Cookies.cs b/src/Bot/Commands/Rpg/Cookies.cs
index 15e6d19..66d845f 100644
--- a/src/Bot/Commands/Rpg/Cookies.cs
+++ b/src/Bot/Commands/Rpg/Cookies.cs
@@ -80,6 +80,12 @@ namespace Geekbot.Bot.Commands.Rpg
{
var giver = await GetUser(Context.User.Id);
+ if (amount < 1)
+ {
+ await ReplyAsync(Localization.Cookies.CantTakeCookies);
+ return;
+ }
+
if (giver.Cookies < amount)
{
await ReplyAsync(Localization.Cookies.NotEnoughToGive);
diff --git a/src/Core/Localization/Cookies.Designer.cs b/src/Core/Localization/Cookies.Designer.cs
index 79c83a7..7a3442c 100644
--- a/src/Core/Localization/Cookies.Designer.cs
+++ b/src/Core/Localization/Cookies.Designer.cs
@@ -1,123 +1,96 @@
-//------------------------------------------------------------------------------
-//
-// This code was generated by a tool.
-// Runtime Version:4.0.30319.42000
-//
-// Changes to this file may cause incorrect behavior and will be lost if
-// the code is regenerated.
-//
-//------------------------------------------------------------------------------
-
-namespace Geekbot.Core.Localization {
- ///
- /// A strongly-typed resource class, for looking up localized strings, etc.
- ///
- // This class was auto-generated by the StronglyTypedResourceBuilder
- // class via a tool like ResGen or Visual Studio.
- // To add or remove a member, edit your .ResX file then rerun ResGen
- // with the /str option, or rebuild your VS project.
- [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
- [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
- [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
- public class Cookies {
-
- private static global::System.Resources.ResourceManager resourceMan;
-
- private static global::System.Globalization.CultureInfo resourceCulture;
-
- [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
- public Cookies() {
- }
-
- ///
- /// Returns the cached ResourceManager instance used by this class.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- public static global::System.Resources.ResourceManager ResourceManager {
- get {
- if (object.ReferenceEquals(resourceMan, null)) {
- global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("Geekbot.Core.Localization.Cookies", typeof(Cookies).Assembly);
- resourceMan = temp;
- }
- return resourceMan;
- }
- }
-
- ///
- /// Overrides the current thread's CurrentUICulture property for all
- /// resource lookups using this strongly typed resource class.
- ///
- [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
- public static global::System.Globalization.CultureInfo Culture {
- get {
- return resourceCulture;
- }
- set {
- resourceCulture = value;
- }
- }
-
- ///
- /// Looks up a localized string similar to You ate {0} cookies, you've only got {1} cookies left.
- ///
- public static string AteCookies {
- get {
- return ResourceManager.GetString("AteCookies", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to You got {0} cookies, there are now {1} cookies in you cookie jar.
- ///
- public static string GetCookies {
- get {
- return ResourceManager.GetString("GetCookies", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to You gave {0} cookies to {1}.
- ///
- public static string Given {
- get {
- return ResourceManager.GetString("Given", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to There are {0} cookies in you cookie jar.
- ///
- public static string InYourJar {
- get {
- return ResourceManager.GetString("InYourJar", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to Your cookie jar looks almost empty, you should probably not eat a cookie.
- ///
- public static string NotEnoughCookiesToEat {
- get {
- return ResourceManager.GetString("NotEnoughCookiesToEat", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to You don't have enough cookies.
- ///
- public static string NotEnoughToGive {
- get {
- return ResourceManager.GetString("NotEnoughToGive", resourceCulture);
- }
- }
-
- ///
- /// Looks up a localized string similar to You already got cookies today, you can have more cookies in {0}.
- ///
- public static string WaitForMoreCookies {
- get {
- return ResourceManager.GetString("WaitForMoreCookies", resourceCulture);
- }
- }
- }
-}
+//------------------------------------------------------------------------------
+//
+// This code was generated by a tool.
+//
+// Changes to this file may cause incorrect behavior and will be lost if
+// the code is regenerated.
+//
+//------------------------------------------------------------------------------
+
+namespace Geekbot.Core.Localization {
+ using System;
+
+
+ [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
+ [System.Diagnostics.DebuggerNonUserCodeAttribute()]
+ [System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
+ public class Cookies {
+
+ private static System.Resources.ResourceManager resourceMan;
+
+ private static System.Globalization.CultureInfo resourceCulture;
+
+ [System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
+ public Cookies() {
+ }
+
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
+ public static System.Resources.ResourceManager ResourceManager {
+ get {
+ if (object.Equals(null, resourceMan)) {
+ System.Resources.ResourceManager temp = new System.Resources.ResourceManager("Geekbot.Core.Localization.Cookies", typeof(Cookies).Assembly);
+ resourceMan = temp;
+ }
+ return resourceMan;
+ }
+ }
+
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
+ public static System.Globalization.CultureInfo Culture {
+ get {
+ return resourceCulture;
+ }
+ set {
+ resourceCulture = value;
+ }
+ }
+
+ public static string GetCookies {
+ get {
+ return ResourceManager.GetString("GetCookies", resourceCulture);
+ }
+ }
+
+ public static string WaitForMoreCookies {
+ get {
+ return ResourceManager.GetString("WaitForMoreCookies", resourceCulture);
+ }
+ }
+
+ public static string InYourJar {
+ get {
+ return ResourceManager.GetString("InYourJar", resourceCulture);
+ }
+ }
+
+ public static string Given {
+ get {
+ return ResourceManager.GetString("Given", resourceCulture);
+ }
+ }
+
+ public static string NotEnoughToGive {
+ get {
+ return ResourceManager.GetString("NotEnoughToGive", resourceCulture);
+ }
+ }
+
+ public static string NotEnoughCookiesToEat {
+ get {
+ return ResourceManager.GetString("NotEnoughCookiesToEat", resourceCulture);
+ }
+ }
+
+ public static string AteCookies {
+ get {
+ return ResourceManager.GetString("AteCookies", resourceCulture);
+ }
+ }
+
+ public static string CantTakeCookies {
+ get {
+ return ResourceManager.GetString("CantTakeCookies", resourceCulture);
+ }
+ }
+ }
+}
diff --git a/src/Core/Localization/Cookies.de-ch.resx b/src/Core/Localization/Cookies.de-ch.resx
index b53b588..3652224 100644
--- a/src/Core/Localization/Cookies.de-ch.resx
+++ b/src/Core/Localization/Cookies.de-ch.resx
@@ -32,4 +32,7 @@
Du hesch {0} guetzli gesse und hesch jezt no {1} übrig
+
+ :police_officer: Du chasch nid guetzli vo anderne chlaue...
+
\ No newline at end of file
diff --git a/src/Core/Localization/Cookies.resx b/src/Core/Localization/Cookies.resx
index 53207fa..a359c5c 100644
--- a/src/Core/Localization/Cookies.resx
+++ b/src/Core/Localization/Cookies.resx
@@ -39,4 +39,7 @@
You ate {0} cookies, you've only got {1} cookies left
+
+ You can't take someone else's cookies
+
\ No newline at end of file