CODING GUIDLINES

When coding an add-on or Making an addon complient with CIRCC script you must remember the following Rules.

  1. Addon Alaises must start with the add-on name or abrv. of the name followed by a _.Example:name_event { code here }
  2. The file name should use the .mrc extension.

Script ini settings need to go into the settings.ini file using the add-on name as the main identifier

Files should be placed into the settings folder.

The addon its self should go into the Modules folder.

 

HEADER CODE

; _______________________________________________
;|
;| CHRISTIAN ~IRC~ CONNECTION SCRIPT
;|_______________________________________________
;|
;| Version: ##
;| Author: Your Name
;| File Name: file.mrc
;| E-mail: your-email-address
;| URL: www.your-url-goes-here.
;| Copyright: 2006 Jan 01 - Present
;|_______________________________________________
;|
;| Please do not modify the source code below
;| Doing so may cause the script to become unstable
;|_______________________________________________

In your On load event be sure to have the following two lines.

On *:LOAD: {
   /writeini $mircdirModules\Modules.ini <Module Name> Info Information about addon.
   /writeini $mircdirModules\Modules.ini <Module Name> Dir $script

}

On *:UNLOAD: {
    /remini $mircdirModules\Modules.ini <Module Name>
}

Example:

On *:LOAD: {
  if ($isalias(bibleset) == $false) { unload -rs $script | echo -a ERROR: This addon Requires The Bible Tools be installed. }
  else {
    /writeini $mircdirModules\Modules.ini BibleSearch Info Bible Search adds the ability to search the bible for a word or phrase.
    /writeini $mircdirModules\Modules.ini BibleSearch Dir $script
  }
}

On *:UNLOAD: {
    /remini $mircdirModules\Modules.ini BibleSearch
}

LOADING ADD-ONS

Load Add-ons using the Control panel /Cp add ons Load

 


 


Copyright © 2003-2009 RGC Ministries Inc.