# /iconnect

## Syntax

**/iconnect \[server] \[port] \[channel] \[nick]**

## Description

This will allow you to connect to an IRC server. The MQ2IRC plugin stores all previously connected servers in the MQ2IRC.ini file, so you need not specify any options as it will connect to the last server you connected to.

Omitting any of the other options will use defaults from the INI file.

## See Also

* [MQ2IRC](/macroquest/plugins/discontinued-unsupported/mq2irc.md)
* [/i](/macroquest/plugins/discontinued-unsupported/mq2irc/commands/i.md)
* [/istatus](/macroquest/plugins/discontinued-unsupported/mq2irc/commands/istatus.md)

[Return to Slash Commands](/macroquest/commands/slash-commands.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://macroquest.gitbook.io/macroquest/plugins/discontinued-unsupported/mq2irc/commands/iconnect.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
