Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3405350
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T05:29:41+00:00 2026-05-18T05:29:41+00:00

Morning All, I have been writing an ever so simple IRC client in visual

  • 0

Morning All,

I have been writing an ever so simple IRC client in visual basic. I have a niggly issue whereby when I am writing to the network stream. On other clients my message cuts off after the first space character. I’m sure this is something simple as the messages are being sent, receiving is fine and debugging the issue it wherever I read the message (i.e. if I debug.print the message being written to the stream it still includes all the words and spaces.) Here is my code.

Thanks in advance

'Send data to IRC Server
Sub Send(ByVal message)
    Try

        'Reformat message to IRC command
             message = message & vbCrLf
             Debug.Print(message)
        'Convert message string into bytes
         Dim sendBytes As [Byte]() = Encoding.ASCII.GetBytes(message)

        'Write data to stream
         ircStream.Write(sendBytes, 0, sendBytes.Length)

        'Run test to see if the string sent matches the user input
         Dim messageSent As String = Encoding.ASCII.GetString(sendBytes)
         Debug.Print(messageSent)

        'Display message on the screen( 0 = Sent Formatting )
         PrintToScreen(message, 0)

    Catch ex As Exception
        'Catch error and display error message in the debug console
         Debug.Print("Error Sending")

    End Try
End Sub
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T05:29:42+00:00Added an answer on May 18, 2026 at 5:29 am

    You probably just need to prepend a ‘:’ to your message like so…

    PRIVMSG #chan_name :your message with spaces

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been stuck with this issue now all morning. I actually saw this
I just have a question thats been pozzling my head all morning. I want
Morning all, I have a php script which I have been testing, and seems
I have been scratching my head all morning behind this but still haven't been
Good Morning All! I have been developing a project for some time in which
so I have been researching this all morning- and I'm pretty sure the code
I have been bashing my head against a wall all morning trying to figure
I've been researching this all morning and have decided that as a last-ditch effort,
I have been racking my brain all morning with this. I am using Eclipse
I have been messing around with this all morning, I know little to nothing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.