| 
				
			 | 
			
			
				@@ -589,14 +589,14 @@ function irc_via_onion { 
			 | 
		
	
		
			
			| 
				589
			 | 
			
				589
			 | 
			
			
				         255) return;; 
			 | 
		
	
		
			
			| 
				590
			 | 
			
				590
			 | 
			
			
				     esac 
			 | 
		
	
		
			
			| 
				591
			 | 
			
				591
			 | 
			
			
				     if [[ $irc_onion == 'no' ]]; then 
			 | 
		
	
		
			
			| 
				592
			 | 
			
				
			 | 
			
			
				-        sed -i ":a;N;\$!ba;s/;Ports =.*/;Ports = $IRC_PORT, $IRC_ONION_PORT/1" /etc/ngircd/ngircd.conf 
			 | 
		
	
		
			
			| 
				593
			 | 
			
				
			 | 
			
			
				-        sed -i ":a;N;\$!ba;s/;Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				592
			 | 
			
			
				+        sed -i "s/;Ports =.*/;Ports = $IRC_PORT, $IRC_ONION_PORT/1" /etc/ngircd/ngircd.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				593
			 | 
			
			
				+        sed -i "s/;Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf 
			 | 
		
	
		
			
			| 
				594
			 | 
			
				594
			 | 
			
			
				         systemctl restart ngircd 
			 | 
		
	
		
			
			| 
				595
			 | 
			
				595
			 | 
			
			
				         dialog --title $"IRC Server" \ 
			 | 
		
	
		
			
			| 
				596
			 | 
			
				596
			 | 
			
			
				                --msgbox $"The IRC server can now be accessed via SSL at your main domain name" 8 50 
			 | 
		
	
		
			
			| 
				597
			 | 
			
				597
			 | 
			
			
				     else 
			 | 
		
	
		
			
			| 
				598
			 | 
			
				
			 | 
			
			
				-        sed -i ":a;N;\$!ba;s/;Ports =.*/Ports = $IRC_PORT, $IRC_ONION_PORT/1" /etc/ngircd/ngircd.conf 
			 | 
		
	
		
			
			| 
				599
			 | 
			
				
			 | 
			
			
				-        sed -i ":a;N;\$!ba;s/;Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				598
			 | 
			
			
				+        sed -i "s/;Ports =.*/Ports = $IRC_PORT, $IRC_ONION_PORT/1" /etc/ngircd/ngircd.conf 
			 | 
		
	
		
			
			| 
				
			 | 
			
				599
			 | 
			
			
				+        sed -i "s/;Ports =.*/Ports = $IRC_PORT/2" /etc/ngircd/ngircd.conf 
			 | 
		
	
		
			
			| 
				600
			 | 
			
				600
			 | 
			
			
				         systemctl restart ngircd 
			 | 
		
	
		
			
			| 
				601
			 | 
			
				601
			 | 
			
			
				         dialog --title $"IRC Server" \ 
			 | 
		
	
		
			
			| 
				602
			 | 
			
				602
			 | 
			
			
				                --msgbox $"The IRC server can now be accessed via its onion address without SSL" 8 50 
			 |