v+t fixed? Currency transactions now hold negative values too.
This commit is contained in:
		| @@ -102,7 +102,7 @@ namespace NadekoBot.Modules.Administration | |||||||
|             [RequireContext(ContextType.Guild)] |             [RequireContext(ContextType.Guild)] | ||||||
|             [RequirePermission(GuildPermission.ManageRoles)] |             [RequirePermission(GuildPermission.ManageRoles)] | ||||||
|             [RequirePermission(GuildPermission.ManageChannels)] |             [RequirePermission(GuildPermission.ManageChannels)] | ||||||
|             public async Task VoicePlusText(IUserMessage msg, [Remainder] string arg) |             public async Task VoicePlusText(IUserMessage msg) | ||||||
|             { |             { | ||||||
|                 var channel = (ITextChannel)msg.Channel; |                 var channel = (ITextChannel)msg.Channel; | ||||||
|                 var guild = channel.Guild; |                 var guild = channel.Guild; | ||||||
| @@ -120,6 +120,7 @@ namespace NadekoBot.Modules.Administration | |||||||
|                     { |                     { | ||||||
|                         var conf = uow.GuildConfigs.For(guild.Id); |                         var conf = uow.GuildConfigs.For(guild.Id); | ||||||
|                         isEnabled = conf.VoicePlusTextEnabled = !conf.VoicePlusTextEnabled; |                         isEnabled = conf.VoicePlusTextEnabled = !conf.VoicePlusTextEnabled; | ||||||
|  |                         await uow.CompleteAsync().ConfigureAwait(false); | ||||||
|                     } |                     } | ||||||
|                     voicePlusTextCache.AddOrUpdate(guild.Id, isEnabled, (id, val) => isEnabled); |                     voicePlusTextCache.AddOrUpdate(guild.Id, isEnabled, (id, val) => isEnabled); | ||||||
|                     if (isEnabled) |                     if (isEnabled) | ||||||
| @@ -143,7 +144,7 @@ namespace NadekoBot.Modules.Administration | |||||||
|             [RequireContext(ContextType.Guild)] |             [RequireContext(ContextType.Guild)] | ||||||
|             [RequirePermission(GuildPermission.ManageChannels)] |             [RequirePermission(GuildPermission.ManageChannels)] | ||||||
|             [RequirePermission(GuildPermission.ManageRoles)] |             [RequirePermission(GuildPermission.ManageRoles)] | ||||||
|             public async Task CleanVPlusT(IUserMessage msg, [Remainder] string arg) |             public async Task CleanVPlusT(IUserMessage msg) | ||||||
|             { |             { | ||||||
|                 var channel = (ITextChannel)msg.Channel; |                 var channel = (ITextChannel)msg.Channel; | ||||||
|                 var guild = channel.Guild; |                 var guild = channel.Guild; | ||||||
|   | |||||||
| @@ -38,7 +38,7 @@ namespace NadekoBot.Services | |||||||
|                 { |                 { | ||||||
|                     UserId = authorId, |                     UserId = authorId, | ||||||
|                     Reason = reason, |                     Reason = reason, | ||||||
|                     Amount = amount, |                     Amount = -amount, | ||||||
|                 }); |                 }); | ||||||
|                 await uow.CompleteAsync().ConfigureAwait(false); |                 await uow.CompleteAsync().ConfigureAwait(false); | ||||||
|             } |             } | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user