removed useless ,fuc, trimming whitespace on calls, changed e.send to original

This commit is contained in:
Master Kwoth
2016-02-22 00:11:07 +01:00
parent c364dab600
commit e5ebdb6de0
21 changed files with 287 additions and 288 deletions

View File

@ -111,7 +111,7 @@ namespace NadekoBot.Extensions {
/// <returns></returns>
public static async Task Reply(this CommandEventArgs e, string message)
{
await e.Send(e.User.Mention + " " + message);
await e.Channel.SendMessage(e.User.Mention + " " + message);
}
/// <summary>
@ -122,7 +122,7 @@ namespace NadekoBot.Extensions {
/// <returns></returns>
public static async Task Reply(this MessageEventArgs e, string message)
{
await e.Send(e.User.Mention + " " + message);
await e.Channel.SendMessage(e.User.Mention + " " + message);
}
/// <summary>

View File

@ -354,19 +354,15 @@ namespace NadekoBot.Classes.Music {
}
public override int Read(byte[] buffer, int offset, int count) {
lock (this) {
Position = readPos;
int read = base.Read(buffer, offset, count);
readPos = Position;
return read;
}
Position = readPos;
int read = base.Read(buffer, offset, count);
readPos = Position;
return read;
}
public override void Write(byte[] buffer, int offset, int count) {
lock (this) {
Position = writePos;
base.Write(buffer, offset, count);
writePos = Position;
}
Position = writePos;
base.Write(buffer, offset, count);
writePos = Position;
}
}
}