Fix message sent when user is trying give themselves !neutral karma
This commit is contained in:
parent
6c142f41d3
commit
c77b501b6c
4 changed files with 16 additions and 1 deletions
|
@ -125,7 +125,7 @@ namespace Geekbot.Bot.Commands.User
|
|||
var actor = await GetUser(Context.User.Id);
|
||||
if (user.Id == Context.User.Id)
|
||||
{
|
||||
await ReplyAsync(string.Format(Localization.Karma.CannotChangeOwnDown, Context.User.Username));
|
||||
await ReplyAsync(string.Format(Localization.Karma.CannotChangeOwnSame, Context.User.Username));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
9
src/Bot/Localization/Karma.Designer.cs
generated
9
src/Bot/Localization/Karma.Designer.cs
generated
|
@ -87,6 +87,15 @@ namespace Geekbot.Bot.Localization {
|
|||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Sorry {0}, but you can't give yourself neutral karma.
|
||||
/// </summary>
|
||||
internal static string CannotChangeOwnSame {
|
||||
get {
|
||||
return ResourceManager.GetString("CannotChangeOwnSame", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Sorry {0}, but you can't give yourself karma.
|
||||
/// </summary>
|
||||
|
|
|
@ -38,4 +38,7 @@
|
|||
<data name="Neutral" xml:space="preserve">
|
||||
<value>Neutral Karma</value>
|
||||
</data>
|
||||
<data name="CannotChangeOwnSame" xml:space="preserve">
|
||||
<value>Sorry {0}, aber du chasch dr selber kei neutrals karma geh</value>
|
||||
</data>
|
||||
</root>
|
|
@ -45,4 +45,7 @@
|
|||
<data name="Neutral" xml:space="preserve">
|
||||
<value>Neutral Karma</value>
|
||||
</data>
|
||||
<data name="CannotChangeOwnSame" xml:space="preserve">
|
||||
<value>Sorry {0}, but you can't give yourself neutral karma</value>
|
||||
</data>
|
||||
</root>
|
Loading…
Reference in a new issue