Project

General

Profile

Actions

Enhancement #190

open

should have an option to wait before joining channels

Added by Nathan Brink almost 14 years ago.

Status:
New
Priority:
Normal
Assignee:
-
Target version:
-
Start date:
2011-01-21
Due date:
% Done:

0%

Estimated time:
Patch Available:
No
Found in Versions:
Confirmed:
No
Branch:
Security:
No
Help Needed:

Description

There is already an on_connect_send option which allows one to identify to nickserv. However, there is no explicit option to wait for some response from nickserv or the IRC server before JOINing channels. This matters in the following two cases brought by Dodzy and Hunner on oftc#bip:

1. Someone who uses hostserv or has his hostmask cloaked shouldn't JOIN channels before successfully identifying to nickserv
2. Certain channels will use unrealircd's +r or charybdis's +R which will cause a user's JOIN to fail if the user isn't yet successfully identified.

I propose that there should be an additional per-connection option called something like ``on_connect_expect'' which would be a regular expression to be matched against lines that the server is sending bip which would be matched before bip proceeds to JOIN the user to channels. This would let someone do something like:

on_connect_expect { expect = "^NickServ![^ ]+ NOTICE .*Password accepted"; timeout = 10; };

If 10 seconds pass while bip is waiting for this response from the browser, it would log an error which would contain the regular expression which bip is waiting for and state that it timed out. This would help users to debug badly-formed regular expressions and also account for services occasionally being unavailable.

No data to display

Actions

Also available in: Atom PDF