Method: Codebot::Network#real_port

Defined in:
lib/codebot/network.rb

#real_portInteger

Returns the port used for connecting to this network, or the default port if no port is set.

Returns:

  • (Integer)

    the port



173
174
175
# File 'lib/codebot/network.rb', line 173

def real_port
  port || (secure ? 6697 : 6667)
end