some random formatting

This commit is contained in:
Kwoth 2016-08-02 02:03:46 +02:00
parent 7399f798bc
commit e7f06c38b4

View File

@ -49,7 +49,6 @@ namespace NadekoBot.Modules.Permissions.Classes
{
return false;
}
if (timeBlackList.Contains(user.Id))
return false;
@ -150,7 +149,8 @@ namespace NadekoBot.Modules.Permissions.Classes
}
}
public void AddUserCooldown(ulong serverId, ulong userId, string commandName) {
public void AddUserCooldown(ulong serverId, ulong userId, string commandName)
{
commandCooldowns.TryAdd(commandName, userId);
var tosave = serverId + ":" + commandName;
Task.Run(async () =>
@ -158,7 +158,8 @@ namespace NadekoBot.Modules.Permissions.Classes
ServerPermissions perms;
PermissionsHandler.PermissionsDict.TryGetValue(serverId, out perms);
int cd;
if (!perms.CommandCooldowns.TryGetValue(commandName,out cd)) {
if (!perms.CommandCooldowns.TryGetValue(commandName, out cd))
{
return;
}
if (commandCooldowns.TryAdd(tosave, userId))