yup there is...
you can do :
on privmsg(con, source, sourcehost, target, thestring)
tell application "IRC"
if thestring is "wake up" then
-- your code
display dialog "WAKE UP!!!
This Wake-UP message sent by:
" & source & "
(" & sourcehost & ")." buttons {"OK"} default button 1
tell application "IRC"
-- send a notice to the client that triggered the command
type "/notice " & source & space & "Sent message" in connection con
end tell
else
-- if you want to check for other text != "wake up" then enter it here
-- tell application "IRC"
-- send a notice to the client that triggered the command
-- type "/notice " & source & space & "Sent message" in connection con
-- end tell
end if
end tell
end privmsg
on load()
-- sends a local message, it is not transmitted to any server or person.
tell application "IRC" to echo "Wake-Up Loaded"
end load
on unload()
-- sends a local message, it is not transmitted to any server or person.
tell application "IRC" to echo "wake Up Unloaded"
end unload
hope this helps
------------------
PGP key:
http://www.geocities.com/maccanada/pgpkey.html
-30-