V5.0.4 - Delete a user when a user has been kicked

This commit is contained in:
adator
2024-08-20 02:24:11 +02:00
parent bfb449f804
commit dbfc04a936
2 changed files with 5 additions and 4 deletions

View File

@@ -220,6 +220,7 @@ class Votekick():
if chan.vote_for > chan.vote_against: if chan.vote_for > chan.vote_against:
self.Irc.send2socket(f':{dnickname} PRIVMSG {channel} :The user {self.Config.CONFIG_COLOR["gras"]}{target_user}{self.Config.CONFIG_COLOR["nogc"]} will be kicked from this channel') self.Irc.send2socket(f':{dnickname} PRIVMSG {channel} :The user {self.Config.CONFIG_COLOR["gras"]}{target_user}{self.Config.CONFIG_COLOR["nogc"]} will be kicked from this channel')
self.Irc.send2socket(f":{dnickname} KICK {channel} {target_user} Following the vote, you are not welcome in {channel}") self.Irc.send2socket(f":{dnickname} KICK {channel} {target_user} Following the vote, you are not welcome in {channel}")
self.Channel.delete_user_from_channel(channel, self.User.get_uid(target_user))
elif chan.vote_for <= chan.vote_against: elif chan.vote_for <= chan.vote_against:
self.Irc.send2socket(f':{dnickname} PRIVMSG {channel} :This user will stay on this channel') self.Irc.send2socket(f':{dnickname} PRIVMSG {channel} :This user will stay on this channel')

View File

@@ -1,3 +1,3 @@
{ {
"version": "5.0.3" "version": "5.0.4"
} }