Author Topic: How can I send a message to a spezial channel, console win?  (Read 3264 times)

MklKvh

  • Newbie
  • *
  • Posts: 25
I

use the following ONJOIN Script.

All works fine, but when I'm in a second channel the output
is in the wrong

(actual) channel. How can I get it in the right one?

Can I give the SendCommand with an optional channel

parameter?

Like a
   SendCommand "/whois " & Nickname,Channel,ServerNumber    

And an other

question:

How can I say something in the console window?

Like
  echo

"blabla","console",ServerNumber

---------------------------------------------------------------
Sub

ONJOIN(Nickname,Host,Channel,ServerNumber)    
  If Channel = "#xyz" then    
    SendCommand "/whois " &

Nickname,ServerNumber    
  end if    
End Sub

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
How can I send a message to a spezial channel, console win?
« Reply #1 on: May 12, 2004, 04:36:27 PM »
In Options, and then IRC Events, you have the choice to send

WHOIS data to the Current(Active) Window, or to the Console. There is no way to send it to a specific channel, since whois

commands are global, not channel based.

To echo something to the console:
SendCommand "/echo -c blah blah",

ServerNumber
the -c parameter makes it send it to the console.

With the Echo command it would be like this:
Echo

"blah blah","-c",ServerNumber

If you use Echo with -a then it sends it to the Active Window.
The IceChat God