plugins/Rejoin.rb
# Enables automatic rejoining for the specified channels.
Enables automatic rejoining for the specified channels.
Enables automatic rejoining for the specified channels .
def rejoin(user, source, channels)
		on_identification(user) do
			split_channels(channels).each do |channel|
				if user.privilege(channel) < ChannelOp
					say(source, "You must be at least a channel operator on #{channel}.")
				elsif not @client.channels.include?(channel)
					say(source, "I'm not in #{channel}.")
				else
					@client.channels[channel].rejoin = true
					say(source, "rejoin #{channel} ON")
				end
			end
		end
	end
def rejoin ( user , source , channels ) on_identification ( user ) do split_channels ( channels ) . each do | channel | if user . privilege ( channel ) < ChannelOp say ( source , "You must be at least a channel operator on #{channel}." ) elsif not @client . channels . include? ( channel ) say ( source , "I'm not in #{channel}." ) else @client . channels [ channel ] . rejoin = true say ( source , "rejoin #{channel} ON" ) end end end end
Enables automatic rejoining for the specified channels.
Enables automatic rejoining for the specified channels .
user
<not_specific>
source
<not_specific>
channels
<not_specific>