Reconnecting and rejoining causes a crash #122

Closed
opened 3 years ago by Tomatix · 2 comments
Owner

The user uses a script to perform on-connect commands, such as authentication, auto join, mode setting, etc.

It is upon a re-join he clains there is a crash.

global motdreceived;
 
#Alias
command perform(command)
{
	fun_perform();
} 
 
function fun_perform()
{
	/privmsg nickserv recover brocky XXXX
	/privmsg nickserv identify XXXX
 
 
	/join #speedsims
	/join #offtopic
	/join #hackers
	/oper Brocky XXXX
	/mode Brocky +s -cF
 
	/muteresp away
 
} 
 
function on_connected()
{
	fun_perform();
}
 
hook numeric(code, params, message)
{
	if (motdreceived == true) return;
	if (code == "376") { # End of MOTD
		motdreceived = true;
		on_connected();
	}
}
 
hook disconnected() 
{ 
	motdreceived = false;
}
The user uses a script to perform on-connect commands, such as authentication, auto join, mode setting, etc. It is upon a re-join he clains there is a crash. ``` global motdreceived; #Alias command perform(command) { fun_perform(); } function fun_perform() { /privmsg nickserv recover brocky XXXX /privmsg nickserv identify XXXX /join #speedsims /join #offtopic /join #hackers /oper Brocky XXXX /mode Brocky +s -cF /muteresp away } function on_connected() { fun_perform(); } hook numeric(code, params, message) { if (motdreceived == true) return; if (code == "376") { # End of MOTD motdreceived = true; on_connected(); } } hook disconnected() { motdreceived = false; } ```
Tomatix added this to the Version 1.1.0 milestone 3 years ago
Tomatix added the
Bug
label 3 years ago
Poster
Owner

Cannot reproduce on Linux, need to check on Windows...

Cannot reproduce on Linux, need to check on Windows...
Tomatix added the
Rejected
label 3 years ago
Poster
Owner

Rejected in favour of fix in issue #127 as these seem very relevant to each other.

Rejected in favour of fix in issue #127 as these seem very relevant to each other.
Tomatix closed this issue 3 years ago
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

No dependencies set.

Reference: idealirc/idealirc#122
Loading…
There is no content yet.