mirror of
				https://github.com/reality/dbot.git
				synced 2025-10-31 06:57:27 +01:00 
			
		
		
		
	the thing the thing
This commit is contained in:
		
							parent
							
								
									a2cb958b73
								
							
						
					
					
						commit
						708e3e0b96
					
				| @ -32,8 +32,12 @@ var api = function(dbot) { | ||||
|                     callback(false); | ||||
|                 } else { | ||||
|                     if(_.has(dbot.modules, 'nickserv') && this.config.useNickserv == true) { | ||||
|                         dbot.api.nickserv.auth(user.server, user.currentNick, function(result) { | ||||
|                             callback(result); | ||||
|                         dbot.api.nickserv.auth(user.server, user.currentNick, function(result, primary) { | ||||
|                             if(result == true && primary == user.primaryNick) { | ||||
|                                 callback(true); | ||||
|                             } else { | ||||
|                                 callback(false); | ||||
|                             } | ||||
|                         }); | ||||
|                     } else { | ||||
|                         callback(true); | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 reality
						reality