motd and adding new commands

General adchpp discussion

Moderator: Moderators

Locked
newborn
Posts: 9
Joined: 2006-12-10 18:31

motd and adding new commands

Post by newborn » 2006-12-10 18:48

Hello Forum :D,

Well I've heard that to make an motd you need to trick ADCH in some way... :shock: hows it done ?

I've looked around a few hubs open to see whats possible and i found one, 'red box' that seems to have a particularly good motd. As well they have additional commands like +myip and +hublists, anyone know how they made those ? :)

Ketsuron
Posts: 13
Joined: 2004-03-25 23:39

Post by Ketsuron » 2006-12-11 03:54

Take a look at access.lua

newborn
Posts: 9
Joined: 2006-12-10 18:31

Post by newborn » 2006-12-11 14:42

ah-ha, yes I have it.... how do you put in Carriage returns though ?

newborn
Posts: 9
Joined: 2006-12-10 18:31

Post by newborn » 2006-12-11 15:11

not to worry I got my question answered. \n for carriage returns :)

PseudonympH
Forum Moderator
Posts: 366
Joined: 2004-03-06 02:46

Post by PseudonympH » 2006-12-12 13:37

Lua also supports WYSIWYG strings using [[ ]] syntax: http://www.lua.org/manual/5.1/manual.html#2.1
[[
Like this...
This will be on a new line
]]

This might be better if you want to be able to visualize formatting.

Locked