Author Topic: Auto-Greater  (Read 5218 times)

Lostsoul

  • Newbie
  • *
  • Posts: 5
Auto-Greater
« on: August 07, 2005, 06:11:20 PM »
I have the auto-Greater enabled for CScript, the only problem is that it is used in every channel.  I only want it used in my clan channel, how can i fix it?

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: Auto-Greater
« Reply #1 on: August 07, 2005, 08:02:28 PM »
You need to edit the ONJOIN Sub in the file cscript3.ice .
The IceChat God

Lostsoul

  • Newbie
  • *
  • Posts: 5
Re: Auto-Greater
« Reply #2 on: August 08, 2005, 06:34:25 AM »
I went to edit it but i was not sure where to edit so i guessed.  That did not work out so well, i had to reload it.  So where is it exactly that i need to change that?

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: Auto-Greater
« Reply #3 on: August 08, 2005, 04:16:22 PM »
Ok, this is what the ONJOIN sub looks like now.
Code: [Select]
Sub ONJOIN(Nickname,Host,Channel,ServerNumber)

Dim nick, UserIP, chan
Dim ServerData
ServerData=Split(IncomingText, " ")
if lcase(NickName) = lcase(MyNickName(ServerNumber)) then
  if instr(lcase(nickname),"guest") > 0 then
     SendCommand "/nick " & MyNick,ServerNumber
  end if
else
  if instr(AGStatus,"on") and AwayStatus(ServerNumber) = False then
    if instr(lcase(nickname),"guest") > 0 then
      SendCommand "/msg " & channel & " 12Hello, 4" & nickname & "12 , welcome to 6" & channel & "12.  Type 3/nick <nickname> 12to change your name.",ServerNumber
      helloresponses = helloresponses & "," & nickname
    else
      if instr(WBUsers,nickname & ":" & channel) then
        SendCommand "/msg " & channel & " 12Hello, 4" & nickname & "12 , welcome back to 6" & channel & "12." , ServerNumber
      else
        SendCommand "/msg " & channel & " 12Hello, 4" & nickname & "12 , welcome to 6" & channel & "12." , ServerNumber
        helloresponses = helloresponses & " " & nickname
        WBUsers = WBUsers & " " & nickname & ":" & channel
      end if
   
      if IsOp("$me",channel,ServerNumber) = True then
        if (IsOp(nickname,channel,ServerNumber) = True) or IsVoice(nickname,channel,ServerNumber) = True then
        else
          if AVStatus = "on" then
               SendCommand "/mode " & channel & " +v " & nickname,ServerNumber
               helloresponses = helloresponses & "," & nickname
        end if
     end if
 end if
end if
end if
   if IsOp("$me",channel,ServerNumber) = True then
    if AVStatus = "on" then
      SendCommand "/mode " & channel & " +v " & nickname,ServerNumber
    end if
   end if
End If

End Sub
This is the line you wish to edit, which checks if "AGStatus" is on, which is AutoGreet Status, and that you are not away.

This is on line 11 - Change it from:
Code: [Select]
if instr(AGStatus,"on") and AwayStatus(ServerNumber) = False then

to:

Code: [Select]
if instr(AGStatus,"on") and AwayStatus(ServerNumber) = False and Channel = "#mychannel" then

the "#mychannel" channel name is case sensative, so make sure it is correct.
« Last Edit: August 08, 2005, 04:19:04 PM by Snerf »
The IceChat God

Lostsoul

  • Newbie
  • *
  • Posts: 5
Re: Auto-Greater
« Reply #4 on: August 08, 2005, 06:42:59 PM »
Thank you very much.  You can come check me out @ #187murderclan on irc.enterthegame.com .