Project

General

Profile

Actions

Feature #5843

open
WH PA

Native "#include" support for script files

Feature #5843: Native "#include" support for script files

Added by Whiskey Hidden 5 days ago.

Status:
New
Priority:
Normal
Assignee:
Category:
Scripting
Target version:
Start date:
05/19/2026
Due date:
% Done:

0%

Estimated time:
Operative System:
All

Description

When developing larger scripts, it is common to split functionality into multiple files/modules to keep the codebase clean and maintainable.

Currently, scripts need to be loaded manually, often through startup aliases or `/load` commands, for example:

on *:START:{
  load -rs modules/logger.mrc
  load -rs modules/network.mrc
  load -rs modules/database.mrc
}

While this works, it becomes increasingly difficult to manage as projects grow.

It would be very useful if AdiIRC supported a native `#include` directive directly inside script files, similar to how many other scripting/programming languages handle modular code.

Example:

#include modules/logger.mrc
#include modules/network.mrc
#include modules/database.mrc

Benefits:

  • Cleaner and more maintainable scripts
  • Easier modular development
  • Better overview of script dependencies
  • Simpler project structure for larger bots/frameworks
  • Makes collaborating on larger projects much easier

This would also make AdiIRC scripting feel more modern and developer-friendly, especially for users building larger modular systems.

No data to display

Actions

Also available in: PDF Atom