Skip to content
Browse files

fixing rmdj bug

  • Loading branch information...
1 parent 35b933d commit a1a618e390aeabea578f2edce42243bdfe0a6e35 Mac Angell committed Mar 4, 2013
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/ExtendedBot.js
View
3 lib/ExtendedBot.js
@@ -237,6 +237,9 @@ function ExtendedBot(auth, userId, roomId) {
action: function(msgData, issuerId, replyFunc) {
var args = msgData.text.split(/\s/);
args.shift();
+ if (args.length < 1) {
+ return replyFunc('Please provide a user name!');
+ }
var user = args.join(' ');
self.findUserIdInRoomByName(user, function(userId) {
if (!userId) {

0 comments on commit a1a618e

Please sign in to comment.
Something went wrong with that request. Please try again.