diff --git a/lib/client.js b/lib/client.js
index <HASH>..<HASH> 100644
--- a/lib/client.js
+++ b/lib/client.js
@@ -248,6 +248,9 @@ Client.prototype._initConfig = function (opts) {
 };
 
 Client.prototype.use = function (pluginInit) {
+    if (typeof pluginInit !== 'function') {
+        return;
+    }
     pluginInit(this, this.stanzas, this.config);
 };
Play nicely if plugins are stripped by a module loader.