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 8337975
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T04:27:12+00:00 2026-06-09T04:27:12+00:00

I’m writing a node.js bot for IRC and I want it to post links

  • 0

I’m writing a node.js bot for IRC and I want it to post links in IRC that people can click on to prompt it to post more data (this is because I want to allow IRC users to stay on the channel, yet prevent my bot from having to flood the channel and get banned for spamming). Is there a way from a node.js application / server that will prevent the <a> tag in IRC from opening a new page? Or possibly a method within IRC for editing the appearance of a link, so I can actually tell the link to execute a javascript command instead?

  • 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-06-09T04:27:14+00:00Added an answer on June 9, 2026 at 4:27 am

    This is not possible due to the huge number of different IRC clients and what extensions they support. IRC is a plain text-only service and a standard compliant IRC client can simply display what messages are sent to it directly without needing to apply any formatting. The common mIRC formatting extension does not have support for links either.
    This means that most IRC clients will have no support for links (Except maybe autogenerated ones) nor javascript. Simply having support for an <a> tag for whatever reason is nonstandard behaviour and I do not know of any IRC clients that support it

    An alternative would be to put a message in the bot output to ask the user to PM the bot with a specific message for more information.

    EDIT: Replies to each individual question

    Is there a way from a node.js application / server that will prevent the <a> tag in IRC from opening a new page?
    This highly depends on what your client support for the <a> tag is. If your client supports the common HTML attributes for the <a> tag, then setting target="_self" will do it. You will need to provide more details about the client you are using to access the server with for a proper answer to this question.

    Or possibly a method within IRC for editing the appearance of a link, so I can actually tell the link to execute a javascript command instead?
    This is also highly dependant on the client. If we continue to assume that the client has support for all the standard HTML attributes, then <a href="#" onclick="[javascript goes here]; return false" style="[styling for link goes here]">Link Text</a> will work. Again, you will need to provide more details about the client for a better answer

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

Sidebar

Related Questions

I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I want to construct a data frame in an Rcpp function, but when I
I'm trying to create an if statement in PHP that prevents a single post
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
I want to count how many characters a certain string has in PHP, but
I have a jquery bug and I've been looking for hours now, I can't
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace

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.