From 3c45907c621f9f93d27c3ae7d2f26a9ba99b1c12 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 6 Feb 2006 22:52:04 +0000 Subject: Allow remote bans from servers to be represented as servers in the banlist git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3113 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/mode.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/mode.cpp b/src/mode.cpp index 60df3e7d8..7909aad38 100644 --- a/src/mode.cpp +++ b/src/mode.cpp @@ -451,7 +451,14 @@ char* ModeParser::AddBan(userrec *user,char *dest,chanrec *chan,int status) b.set_time = TIME; strlcpy(b.data,dest,MAXBUF); - strlcpy(b.set_by,user->nick,NICKMAX); + if (*user->nick) + { + strlcpy(b.set_by,user->nick,NICKMAX); + } + else + { + strlcpy(b.set_by,Srv->GetServerName().c_str(),NICKMAX); + } chan->bans.push_back(b); return dest; } -- cgit v1.2.3