Difference between revisions of "On chat"

From Scriptwiki
Jump to: navigation, search
m (I think they'd look better bold)
m (CD link)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
'''On Chat''' and '''On Serv''' trigger when a data is received via a DCC Chat or DCC FServer.
+
'''On Chat''' and '''On Serv''' trigger when a data is received via a DCC Chat or DCC FServe.
 
  on <level>:CHAT:<matchtext>:<commands>
 
  on <level>:CHAT:<matchtext>:<commands>
 
  on <level>:SERV:<matchtext>:<commands>
 
  on <level>:SERV:<matchtext>:<commands>
Line 18: Line 18:
 
  }
 
  }
  
== Also See ==
+
== See Also==
 
* [[On text]] - Information about how the match text is triggered.
 
* [[On text]] - Information about how the match text is triggered.
 +
* [[$cd]] - Current Directory of a File Serv
 +
 +
[[Category:Events]]

Latest revision as of 01:54, 31 May 2009

On Chat and On Serv trigger when a data is received via a DCC Chat or DCC FServe.

on <level>:CHAT:<matchtext>:<commands>
on <level>:SERV:<matchtext>:<commands>

These events trigger in the same way On text triggers for regular private message except you do not need to specify a target.

Note

When you're trying to reply to a message sent via a DCC window you need to prefix the nickname with an = sign. See below examples.

Examples

on *:CHAT:Hello: {
  msg =$nick Hi $nick $+ , how are you?
}
on *:SERV:quit: {
  msg =$nick Thanks for using my fileserver, bye!
  close -f $nick
}

See Also

  • On text - Information about how the match text is triggered.
  • $cd - Current Directory of a File Serv