removed useless ,fuc, trimming whitespace on calls, changed e.send to original
This commit is contained in:
@ -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>
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user