eggheads / eggdrop

The Eggdrop IRC Bot
GNU General Public License v2.0
494 stars 88 forks source link

Enhance load module #1624

Open michaelortmann opened 2 weeks ago

michaelortmann commented 2 weeks ago

Found by: michaelortmann Patch by: michaelortmann Fixes:

One-line summary: Enhance load module

Additional description (if needed):

  1. eggdrop.conf doc was adapted to current behavior, where eggdrop cannot run from compilation / source dir anymore but would throw * You are attempting to run Eggdrop from the source directory. Please finish installing Eggdrop by running "make install" and run it from the install location.
  2. Raise path for module loading to PATH_MAX. eggdrops mod-path setting is still limited to 120 chars, but path for module loading needs additional space for the current directory returned by getcwd().
  3. Enhance error reporting for getcwd().

Test cases demonstrating functionality (if applicable):