Skip to content

Commit

Permalink
Merge pull request DevChatter#79 from DevChatter/benrick/oauthfix
Browse files Browse the repository at this point in the history
OAuth Fix
  • Loading branch information
benrick authored May 19, 2020
2 parents 77e7cb9 + 6c0b5d9 commit 1a5149d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 2 additions & 0 deletions src/InteractiveSeven.Twitch/ChatBot.cs
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ public void Connect()
return;
}

Settings.AccessToken = Settings.AccessToken.Replace("oauth:", "", StringComparison.OrdinalIgnoreCase);

try
{
ConnectionCredentials credentials = new ConnectionCredentials(Settings.Username, Settings.AccessToken);
Expand Down
7 changes: 5 additions & 2 deletions src/InteractiveSeven/SettingsWindow.xaml
Original file line number Diff line number Diff line change
Expand Up @@ -649,8 +649,11 @@
IsEnabled="{Binding Enabled}" IsChecked="{Binding Path=EnablePauperCommand, Mode=TwoWay}" />
<Label Grid.Row="3" Grid.Column="1" Content="Enable Pauper Command (lose all equipment, items, materia, and gil)" FontSize="12" Margin="5,0,0,0"/>

<mah:NumericUpDown Grid.Row="4" Grid.Column="0" Width="75" Minimum="0" Interval="100" StringFormat="N0"
IsEnabled="{Binding EnablePauperCommand}" Value="{Binding Path=PauperCommandCost, Mode=TwoWay}" />
<mah:NumericUpDown Grid.Row="4" Grid.Column="0"
HorizontalAlignment="Right" Width="200"
Minimum="0" Interval="100" StringFormat="N0"
Maximum="20000000"
IsEnabled="{Binding EnablePauperCommand}" Value="{Binding Path=PauperCommandCost, Mode=TwoWay}" />
<Label Grid.Row="4" Grid.Column="1" Content="Pauper Gil Cost" FontSize="12" Margin="5,0,0,0" />

<CheckBox Grid.Row="5" Grid.Column="0" VerticalContentAlignment="Center" HorizontalAlignment="Right"
Expand Down

0 comments on commit 1a5149d

Please sign in to comment.