lib/rubot/plugin.rb
# Splits a string that contains a list of comma-separated channels. Pound
# signs are prefixed to each channel if necessary, and 0-length channel
# names are removed.
Splits a string that contains a list of comma-separated channels. Pound
signs are prefixed to each channel if necessary, and 0-length channel
names are removed.
Splits a string that contains a list of comma - separated channels . Pound signs are prefixed to each channel if necessary and 0 - length channel names are removed .
def split_channels(channels)
		channels = channels.to_s if channels.is_a?(Integer)
		return channels.split(',').map { |channel|
			channel.strip!
			channel = '#' + channel if channel.size > 0 and channel[0,1] != '#'
			(channel.empty?) ? nil : channel
		}.compact
	end
def split_channels ( channels ) channels = channels . to_s if channels . is_a? ( Integer ) return channels . split ( ',' ) . map { | channel | channel . strip! channel = '#' + channel if channel . size > 0 and channel [ 0 , 1 ] != '#' ( channel . empty? ) ? nil : channel } . compact end
Splits a string that contains a list of comma-separated channels.
Splits a string that contains a list of comma - separated channels .
channels
<not_specific>