Author Topic: a help script...was going well till...  (Read 4977 times)

DarkStar

  • Full Member
  • ***
  • Posts: 135
  • Scripts for Praise
    • CorpseCorp
a help script...was going well till...
« on: October 28, 2006, 08:29:20 PM »
Quote
<DarkStar2374383> !help testing1 # testing2
<Dark_Bot> Item: ing1 #Resensitized testing2 Subject: ng1 #Resensitized te

Now, #resensitized is a channel that both I and the bot are in, But I have no idea why its coming into this since its a query...heres my code



Code: [Select]
Sub ONQUERY(Message,Nickname,Host,ServerNumber)

if left(lcase(Message),5) = "!help" then
  if len(Message) > 6 then
    content = Mid(lcase(Message),7)
    if Instr(content,"#") then
      temp1 = instr(content,"#")
      if temp1 > 0 then
        item = Mid(Message,temp1+1)
        subject = Mid(Message,12,temp1 - 2)
        SendCommand "/msg " & Nickname & " Item: " & Item & " Subject: " & Subject & "", ServerNumber
      else
        SendCommand "/msg " & Nickname & " I do not Understand your Query....", ServerNumber
      end if
    else
    end if
  else
    SendCommand "/msg " & Nickname & " This is a Placeholder For more Information.", ServerNumber
  end if
else
  SendCommand "/msg " & Nickname & " I do not Understand your Query....", ServerNumber
end if

End Sub
This message brought to you by the Wonderful Wizard of Oz.

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: a help script...was going well till...
« Reply #1 on: October 28, 2006, 10:21:04 PM »
Sorry, I do not understand the problem.
The IceChat God

DarkStar

  • Full Member
  • ***
  • Posts: 135
  • Scripts for Praise
    • CorpseCorp
Re: a help script...was going well till...
« Reply #2 on: October 28, 2006, 11:39:56 PM »
Oh, Sorry I wasn't more specific.

The bot returned this:

<Dark_Bot> Item: ing1 #Resensitized testing2 Subject: ng1 #Resensitized te

Now, I Probably just messed up with the values and that is where those letters come from all weird, But Im trying to figure out how #Resensitized got in there.
This message brought to you by the Wonderful Wizard of Oz.

Snerf

  • Administrator
  • Hero Member
  • *****
  • Posts: 1968
    • IceChat IRC Client
Re: a help script...was going well till...
« Reply #3 on: October 29, 2006, 12:14:27 AM »
The " # " is getting parsed into the current channel. You will need to use a different character.
All items are automatically parsed, identifiers and such, automatically with Scripts. It makes no difference if / or // is used before a message.
The IceChat God