Author Topic: Auto response  (Read 3386 times)


  • Newbie
  • *
  • Posts: 4
Auto response
« on: February 12, 2005, 01:49:46 PM »
First of all, i'm not a scripter and don't

have any experience in this, as i'm working as computer administrator and IRC scripting isn't needed for my work


But i'm using IceChat 5.50 and want to make one thing:

When any user sends private message to me (query

window opens), he should get automated message, for example "Thanks for contacting me". It's like away system, but it should

work all the time when new query window is opened. It would be cool if message will be sent just if other user pms me (if i

open query window myself, message shouldn't be sent).

Thanks for all ideas or comments


  • Administrator
  • Hero Member
  • *****
  • Posts: 1975
    • IceChat IRC Client
Auto response
« Reply #1 on: February 12, 2005, 09:25:24 PM »

There is currently no script event when a new

query window opens, the ONQUERY script event is any time you have a private message sent to you, so it would happen for a new

message , of course, but it would also fire for any extra messages that are sent in the same


Code: [Select]

Sub ONQUERY(Message,Nickname,Host,ServerNumber)
SendCommand "/msg "

& NickName & " Thanks for contacting me", ServerNumber
End Sub

This is

very simple, and sends this message any time you receive a query message. If you do not want it send the message when you

started a Query, and/or do not want to send it more then 1 time, you will need to do a lot more work, keeping track of names

in variables in the scripts, etc etc. Perhaps someone else would like to give that a try, and you can try it yourself as

well, as IceChat does come with good help files for the VB Script language.
The IceChat God