Jass:

Code:
function HelloUbuntu_Read takes nothing returns nothing
      call BJDebugMsg("Hello "+GetEventPlayerChatString()+", welcome to Ubuntu")

      call DestroyTrigger(GetTriggeringTrigger())
endfunction

function HelloUbuntu_ini takes nothing returns nothing
 local trigger t=CreateTrigger()
      call TriggerAddAction(t, function HelloUbuntu_Read)
      call TriggerRegisterPlayerChatEvent(t, Player(0), "", false)
      call BJDebugMsg("Hi, what's your name?")
 set t=null
endfunction
vJass:


Code:
library HelloUbuntu initializer init

private function onRead takes nothing returns nothing
      call BJDebugMsg("Hello "+GetEventPlayerChatString()+", welcome to Ubuntu")

      call DestroyTrigger(GetTriggeringTrigger())
endfunction

private function init takes nothing returns nothing
 local trigger t=CreateTrigger()
      call TriggerAddAction(t, function onRead)
      call TriggerRegisterPlayerChatEvent(t, Player(0), "", false)
      call BJDebugMsg("Hi, what's your name?")
 set t=null
endfunction

endlibrary