Skip to content

Commit

Permalink
Replace open in protocol extension w/ public
Browse files Browse the repository at this point in the history
... as requested by Swift.
  • Loading branch information
helje5 committed Jul 3, 2024
1 parent 467ec9b commit 1d6bb53
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Sources/IRC/IRCClient.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
//
// This source file is part of the swift-nio-irc open source project
//
// Copyright (c) 2018-2020 ZeeZide GmbH. and the swift-nio-irc project authors
// Copyright (c) 2018-2024 ZeeZide GmbH. and the swift-nio-irc project authors
// Licensed under Apache License v2.0
//
// See LICENSE.txt for license information
Expand Down Expand Up @@ -573,13 +573,13 @@ extension IRCClient : IRCDispatcher {
}
}

open func doNotice(recipients: [ IRCMessageRecipient ], message: String)
public func doNotice(recipients: [ IRCMessageRecipient ], message: String)
throws
{
delegate?.client(self, notice: message, for: recipients)
}

open func doMessage(sender : IRCUserID?,
public func doMessage(sender : IRCUserID?,
recipients : [ IRCMessageRecipient ],
message : String) throws
{
Expand All @@ -590,7 +590,7 @@ extension IRCClient : IRCDispatcher {
delegate?.client(self, message: message, from: sender, for: recipients)
}

open func doNick(_ newNick: IRCNickName) throws {
public func doNick(_ newNick: IRCNickName) throws {
switch state {
case .registering(let channel, let nick, let info):
guard nick != newNick else { return }
Expand All @@ -606,7 +606,7 @@ extension IRCClient : IRCDispatcher {
delegate?.client(self, changedNickTo: newNick)
}

open func doMode(nick: IRCNickName, add: IRCUserMode, remove: IRCUserMode)
public func doMode(nick: IRCNickName, add: IRCUserMode, remove: IRCUserMode)
throws
{
guard let myNick = state.nick, myNick == nick else {
Expand All @@ -622,7 +622,7 @@ extension IRCClient : IRCDispatcher {
}
}

open func doPing(_ server: String, server2: String? = nil) throws {
public func doPing(_ server: String, server2: String? = nil) throws {
let msg : IRCMessage

msg = IRCMessage(origin: origin, // probably wrong
Expand Down

0 comments on commit 1d6bb53

Please sign in to comment.