Skip to content

Commit b11ce13

Browse files
committed
Fixed stop message not shown
1 parent 4d8af6c commit b11ce13

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

SEDiscordBridge/DiscordBridge.cs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -99,15 +99,15 @@ public void SendStatusMessage(string user, string msg)
9999
{
100100
DiscordChannel chann = discord.GetChannelAsync(ulong.Parse(Plugin.Config.StatusChannelId)).Result;
101101

102-
if (user == null)
103-
return;
102+
if (user != null)
103+
{
104+
if (user.StartsWith("ID:"))
105+
return;
104106

105-
if (user.StartsWith("ID:"))
106-
return;
107+
msg = msg.Replace("{p}", user);
108+
}
107109

108-
//mention
109-
//msg = MentionNameToID(msg, chann);
110-
discord.SendMessageAsync(chann, msg.Replace("{p}", user));
110+
discord.SendMessageAsync(chann, msg);
111111
}
112112
}
113113

SEDiscordBridge/manifest.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
<Name>SEDiscordBridge</Name>
44
<Guid>E182D3CC-1229-4D7F-B42B-5442981A082D</Guid>
55
<Repository>Fankserver/SEDiscordBridge</Repository>
6-
<Version>v1.4.2</Version>
6+
<Version>v1.4.3</Version>
77
</PluginManifest>

0 commit comments

Comments
 (0)