code: def on_welcome(self, c, e):
          
          self.backoff = 1  # Assume we had a good connection. Reset backoff.
          if self.nickserv:
              if Utilities.isNotEmpty(self.nickserv_pass):
                  self.identify(c, e, self.nickserv_pass)
                  time.sleep(3)  # Make sure Nickserv really sees us
              else:
                  logger.error('If nickserv is enabled, you must supply'
                               ' a password')
  
          if self.nickserv is False and self.nickserv_pass is not None:
              logger.warn('It appears you provided a nickserv password but '
                          'did not enable nickserv authentication')
  
          for channel in self.my_channels:
              logger.debug('Attempting to join {0!s}'.format(channel))
              c.join(channel)
docs: This function runs when the bot successfully connects to the IRC server