Skip to content
This repository was archived by the owner on Oct 19, 2023. It is now read-only.

Commit 24db889

Browse files
typo: fix (#190)
* typo: fix * typo: fix * revert: protobuf typo * Update GroupModifyMemberCardEvent.cs Co-authored-by: TheSnowfield <[email protected]>
1 parent f62d83c commit 24db889

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+80
-82
lines changed

Konata.Core/Common/BotConfig.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public class BotConfig
5252
#region Protocol
5353

5454
/// <summary>
55-
/// Procotol type
55+
/// Protocol type
5656
/// </summary>
5757
public OicqProtocol Protocol;
5858

Konata.Core/Common/BotMember.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public class BotMember
2828
public string SpecialTitle { get; set; }
2929

3030
/// <summary>
31-
/// Member special title expird time
31+
/// Member special title expire time
3232
/// </summary>
3333
public uint SpecialTitleExpiredTime { get; set; }
3434

@@ -101,7 +101,7 @@ public enum RoleType
101101
Member = 1,
102102

103103
/// <summary>
104-
/// Administator
104+
/// Administrator
105105
/// </summary>
106106
Admin,
107107

Konata.Core/Components/BusinessComponent.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public override void OnStart()
8989
if (_taskTimeout <= 2000)
9090
{
9191
LogW(TAG, "The timeout you configured is less than 2000ms, " +
92-
"this can cause server communication chances to fail. Force reseted to 6000ms.");
92+
"this can cause server communication chances to fail. Force reset to 6000ms.");
9393
_taskTimeout = 6000;
9494
}
9595
}

Konata.Core/Components/HighwayComponent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public async Task<bool> PicDataUp(uint selfUin,
7070
}
7171

7272
/// <summary>
73-
/// Multimsg upload
73+
/// MultiMsg upload
7474
/// </summary>
7575
/// <param name="selfUin"></param>
7676
/// <param name="destUin"></param>
@@ -239,7 +239,7 @@ public static async Task<HwResponse> Upload(string host, int port, int chunk,
239239
// Hello Im coming
240240
if (!await client.Echo()) return null;
241241

242-
// Send the dataup
242+
// Send the data up
243243
var i = 0;
244244
while (i < data.Length)
245245
{

Konata.Core/Components/Logics/Model/MessageFilterLogic.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ namespace Konata.Core.Components.Logics.Model;
1616

1717
[EventSubscribe(typeof(OnlineStatusEvent))]
1818
[EventSubscribe(typeof(FilterableEvent))]
19-
[BusinessLogic("Mesage Filter Logic", "Filter duplicate push events.")]
19+
[BusinessLogic("Message Filter Logic", "Filter duplicate push events.")]
2020
internal class MessageFilterLogic : BaseLogic
2121
{
22-
private const string TAG = "Mesage Filter Logic";
22+
private const string TAG = "Message Filter Logic";
2323
private const string ScheduleSyncServerTime = "Logic.Filter.SyncServerTime";
2424
private const string ScheduleCacheClear = "Logic.Filter.CacheClear";
2525
private const int FilterCacheTime = 15;

Konata.Core/Components/Logics/Model/MessagingLogic.cs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ void CollectResources(MessageChain msgs)
187187
// Upload records
188188
UploadRecords(recordChains, uin, isGroup),
189189

190-
// Placeholder for multisg
190+
// Placeholder for MultiMsg
191191
Task.FromResult(false)
192192
);
193193

@@ -325,7 +325,7 @@ private async Task<bool> UploadImages(List<ImageChain> image, uint uin, bool isG
325325
}
326326

327327
/// <summary>
328-
/// Upload multimsg
328+
/// Upload MultiMsg
329329
/// </summary>
330330
/// <param name="uin"></param>
331331
/// <param name="main"></param>
@@ -335,7 +335,7 @@ private async Task<bool> UploadImages(List<ImageChain> image, uint uin, bool isG
335335
private async Task<bool> UploadMultiMsg(MultiMsgChain main,
336336
List<MultiMsgChain> sides, uint uin, bool isGroup)
337337
{
338-
// Chain packup
338+
// Chain pack up
339339
var packed = MessagePacker.PackMultiMsg(main, sides,
340340
isGroup ? MessagePacker.Mode.Group : MessagePacker.Mode.Friend);
341341

@@ -351,7 +351,7 @@ private async Task<bool> UploadMultiMsg(MultiMsgChain main,
351351
main.SetMultiMsgUpInfo(result.UploadInfo, packed);
352352
}
353353

354-
// Highway multimsg upload
354+
// Highway MultiMsg upload
355355
return await HighwayComponent.MultiMsgUp(uin, Context.Bot.Uin, main);
356356
}
357357

@@ -399,7 +399,7 @@ private async Task<bool> UploadRecords(List<RecordChain> message, uint uin, bool
399399
.PttUp(uin, Context.Bot.Uin, i, isGroup);
400400
}
401401

402-
Context.LogV(TAG, "Recored uploaded.");
402+
Context.LogV(TAG, "Recorded uploaded.");
403403
return true;
404404
}
405405

Konata.Core/Components/Logics/Model/OperationLogic.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ public async Task<bool> GroupKickMember
162162
/// <param name="groupUin"><b>[In]</b> Group uin being operated. </param>
163163
/// <param name="memberUin"><b>[In]</b> Member uin being operated. </param>
164164
/// <param name="specialTitle"><b>[In]</b> Special title. </param>
165-
/// <param name="expiredTime"><b>[In]</b> Exipred time. </param>
165+
/// <param name="expiredTime"><b>[In]</b> Expired time. </param>
166166
/// <returns>Return true for operation successfully.</returns>
167167
/// <exception cref="OperationFailedException"></exception>
168168
public async Task<bool> GroupSetSpecialTitle(uint groupUin,

Konata.Core/Components/Logics/Model/PushEventLogic.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -49,21 +49,21 @@ public override async Task Incoming(ProtocolEvent e)
4949
break;
5050

5151
// Handle online push
52-
case OnlineReqPushEvent reqpush:
53-
await OnOnlineReqPush(reqpush);
52+
case OnlineReqPushEvent reqPush:
53+
await OnOnlineReqPush(reqPush);
5454
break;
5555

5656
// Handle online push trans
57-
case PushTransMsgEvent transpush:
58-
await OnPushTransMsg(transpush);
57+
case PushTransMsgEvent transPush:
58+
await OnPushTransMsg(transPush);
5959
break;
6060

6161
// Handle push notify event
62-
case PushNotifyEvent notifypush:
63-
await OnPushNotify(notifypush);
62+
case PushNotifyEvent notifyPush:
63+
await OnPushNotify(notifyPush);
6464
break;
6565

66-
// Just forward messages to userend
66+
// Just forward messages to user end
6767
default:
6868
Context.PostEventToEntity(e);
6969
break;

Konata.Core/Components/Logics/Model/WtExchangeLogic.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ public Task<bool> Logout()
199199
)
200200
);
201201

202-
// Push loggedout
202+
// Push logged out
203203
Context.PostEventToEntity(
204204
BotOfflineEvent.Push(
205205
BotOfflineEvent.OfflineType.UserLoggedOut,
@@ -270,7 +270,7 @@ private Task<WtLoginEvent> WaitForUserOperation()
270270
// case OnlineStatusEvent.Type.Busy:
271271
// case OnlineStatusEvent.Type.Hidden:
272272
// case OnlineStatusEvent.Type.QMe:
273-
// case OnlineStatusEvent.Type.DoNotDistrub:
273+
// case OnlineStatusEvent.Type.DoNotDisturb:
274274
// return Task.FromResult(false);
275275
// }
276276
//
@@ -391,15 +391,15 @@ private async void OnCheckConnection()
391391
// Reconnect
392392
if (await SocketComponent.Reconnect())
393393
{
394-
// Bot reonline
394+
// Bot re-online
395395
if (await OnBotOnline())
396396
{
397397
Context.LogI(TAG, "Network reset.");
398398
return;
399399
}
400400

401401
Context.LogW(TAG, "Reconnect failed! " +
402-
"Might need to relogin?");
402+
"Might need to re-login?");
403403
}
404404

405405
// Relogin

Konata.Core/Components/PacketComponent.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,13 +191,13 @@ private bool OnOutgoing(KonataTask task, ProtocolEvent protocolEvent)
191191
_serviceSequence.Session, wupBuffer, out var ssoFrame))
192192
throw new Exception("Create sso frame failed.");
193193

194-
// Build to srevice message
194+
// Build to service message
195195
if (!ServiceMessage.Create(ssoFrame, attr.AuthType, Bot.Uin,
196196
ConfigComponent.KeyStore.Session.D2Token,
197197
ConfigComponent.KeyStore.Session.D2Key, out var toService))
198198
throw new Exception("Create service message failed.");
199199

200-
// Packup
200+
// Pack up
201201
if (!ServiceMessage.Build(toService,
202202
ConfigComponent.AppInfo, ConfigComponent.DeviceInfo, out var output))
203203
throw new Exception("Build packet failed");

0 commit comments

Comments
 (0)