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

  • SEARCH
  • Home
  • 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

Good morning all. I'm relatively new to the Visual Basic realm (although a traditional
I have been attempting this all morning (VS2K10, OL2K7, .NET 3.5) and my PSTs
Quick question. I have been Googling this all morning, but it's either not there,
Morning all I have frequently used the old <asp:Label ID=lblWas runat=server Text='<%# XPath(FACEVALUE) %>'></asp:Label>
I'm new to Maven and I've been reading all morning tutorials (amazing tool). This
Morning all, I've created a custom control with an image property. That image property
This morning, I tried to commit a revision to Subversion and found that all
Good morning, I am about to start writing an Excel add-in for Excel 2002.
This morning I ran into an issue with returning back a text string as
Good morning. I have an XML file which contains lists of warning and errors

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.