| 
									
										
										
										
											2010-07-04 10:24:22 -07:00
										 |  |  | The IRC plugin allows users to send and receive notices over an IRC network. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Installation | 
					
						
							|  |  |  | ============ | 
					
						
							|  |  |  | add "addPlugin('irc', | 
					
						
							|  |  |  |     array('setting'=>'value', 'setting2'=>'value2', ...);" | 
					
						
							|  |  |  | to the bottom of your config.php | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | scripts/imdaemon.php included with StatusNet must be running. It will be started by | 
					
						
							|  |  |  | the plugin along with their other daemons when you run scripts/startdaemons.sh. | 
					
						
							|  |  |  | See the StatusNet README for more about queuing and daemons. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Settings | 
					
						
							|  |  |  | ======== | 
					
						
							| 
									
										
										
										
											2010-07-09 02:02:50 -07:00
										 |  |  | host*: Hostname of IRC server | 
					
						
							| 
									
										
										
										
											2010-07-20 11:16:59 -07:00
										 |  |  | port: Port of IRC server (defaults to 6667) | 
					
						
							| 
									
										
										
										
											2010-07-09 02:02:50 -07:00
										 |  |  | username*: Username of bot | 
					
						
							|  |  |  | realname*: Real name of bot | 
					
						
							|  |  |  | nick*: Nickname of bot | 
					
						
							| 
									
										
										
										
											2010-07-04 10:24:22 -07:00
										 |  |  | password: Password | 
					
						
							| 
									
										
										
										
											2010-07-09 02:02:50 -07:00
										 |  |  | nickservpassword: NickServ password for identification | 
					
						
							| 
									
										
										
										
											2010-07-26 11:13:00 -07:00
										 |  |  | nickservidentifyregexp: Override existing regexp matching request for identification from NickServ | 
					
						
							| 
									
										
										
										
											2010-07-09 02:02:50 -07:00
										 |  |  | channels: Channels for bot to idle in | 
					
						
							| 
									
										
										
										
											2010-07-20 11:16:59 -07:00
										 |  |  | transporttype: Set to 'ssl' to enable SSL | 
					
						
							| 
									
										
										
										
											2010-07-21 05:21:37 -07:00
										 |  |  | encoding: Set to change encoding | 
					
						
							| 
									
										
										
										
											2010-08-11 10:49:09 -07:00
										 |  |  | pinginterval: Set to change the number of seconds between pings (helps keep the connection open) | 
					
						
							|  |  |  |               Defaults to 120 seconds | 
					
						
							| 
									
										
										
										
											2010-07-23 13:33:41 -07:00
										 |  |  | regcheck: Check user's nicknames are registered, enabled by default, set to false to disable | 
					
						
							|  |  |  | regregexp: Override existing regexp matching response from NickServ if nick checked is registered. | 
					
						
							|  |  |  |            Must contain a capturing group catching the nick | 
					
						
							|  |  |  | unregregexp: Override existing regexp matching response from NickServ if nick checked is unregistered | 
					
						
							|  |  |  |              Must contain a capturing group catching the nick | 
					
						
							| 
									
										
										
										
											2010-07-04 10:24:22 -07:00
										 |  |  | 
 | 
					
						
							|  |  |  | * required | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | Example | 
					
						
							|  |  |  | ======= | 
					
						
							|  |  |  | addPlugin('irc', array( | 
					
						
							|  |  |  |     'host' => '...', | 
					
						
							|  |  |  |     'username' => '...', | 
					
						
							|  |  |  |     'realname' => '...', | 
					
						
							| 
									
										
										
										
											2010-07-09 02:02:50 -07:00
										 |  |  |     'nick' => '...', | 
					
						
							|  |  |  |     'channels' => array('#channel1', '#channel2') | 
					
						
							| 
									
										
										
										
											2010-07-04 10:24:22 -07:00
										 |  |  | )); | 
					
						
							|  |  |  | 
 |